From c2b98ba395aa486c18fa002175d93aa789b231d6 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 28 Aug 2023 21:05:47 +0200 Subject: Reimplement the info file printer --- lib/download.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib') 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) -- cgit v1.2.3