diff options
| author | Eugen Wissner <belka@caraus.de> | 2023-08-28 21:05:47 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2023-08-28 21:05:47 +0200 |
| commit | c2b98ba395aa486c18fa002175d93aa789b231d6 (patch) | |
| tree | abd459165ae6c51f38358c65ed55a57efacab4c7 /lib | |
| parent | 2126488066713719e26a1049adb080e68ec124f1 (diff) | |
| download | slackbuilder-c2b98ba395aa486c18fa002175d93aa789b231d6.tar.gz | |
Reimplement the info file printer
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/download.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/download.rb b/lib/download.rb index ef255f6..80ff30b 100644 --- a/lib/download.rb +++ b/lib/download.rb @@ -31,16 +31,7 @@ module SlackBuilder end def self.download_and_deploy(uri, tarball) - remote_path = tarball[tarball.index('/')..] - - if remote_file_exists?(remote_path) - uri = URI hosted_sources(remote_path) - return download(uri, "slackbuilds/#{tarball}").hexdigest - end - - checksum = download uri, "slackbuilds/#{tarball}" - sh(*upload_command(tarball, remote_path)) - checksum.hexdigest + `./bin/slackbuilder deploy #{uri} #{tarball}`.strip end private_class_method def self.upload_command(local_path, remote_path) |
