From 6983304b9d11e78ebf5fd21c835dd04c776102f5 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 21 Aug 2023 13:38:20 +0200 Subject: Download and determine the digest --- lib/download.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'lib') diff --git a/lib/download.rb b/lib/download.rb index 9b962b0..f230837 100644 --- a/lib/download.rb +++ b/lib/download.rb @@ -32,15 +32,7 @@ module SlackBuilder end def self.download(uri, target) - print Term::ANSIColor.green "Downloading #{uri} " - checksum = nil - - Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http| - checksum = start_download uri, target, http - end - - puts - checksum + `./bin/slackbuilder download #{uri} #{target}`.strip end def self.hosted_sources(absolute_url) -- cgit v1.2.3