diff options
| author | Eugen Wissner <belka@caraus.de> | 2023-08-21 13:38:20 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2023-08-21 13:38:20 +0200 |
| commit | 6983304b9d11e78ebf5fd21c835dd04c776102f5 (patch) | |
| tree | b0a89cafc0a71ee5c4d94b872fcd6f68d3adb29f /lib | |
| parent | 258604f22d2bc50480aa4eb57778ab96c97cf1c6 (diff) | |
| download | slackbuilder-6983304b9d11e78ebf5fd21c835dd04c776102f5.tar.gz | |
Download and determine the digest
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/download.rb | 10 |
1 files changed, 1 insertions, 9 deletions
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) |
