diff options
| author | Eugen Wissner <belka@caraus.de> | 2023-03-22 10:58:37 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2023-03-22 10:58:37 +0100 |
| commit | c7a527e0106295bb579716922f49c834fb3f9998 (patch) | |
| tree | 211ed04cfde75f5586684dfe00cbc1a1e67b62a2 /lib | |
| parent | 6b634b40557bd8401093dc67002b355e7de16d44 (diff) | |
| download | slackbuilder-c7a527e0106295bb579716922f49c834fb3f9998.tar.gz | |
gcc-latest: Added a patch for immutable structs
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/download.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/download.rb b/lib/download.rb index 5b824f5..913fd86 100644 --- a/lib/download.rb +++ b/lib/download.rb @@ -43,11 +43,11 @@ module SlackBuilder checksum end - def hosted_sources(absolute_url) + def self.hosted_sources(absolute_url) CONFIG[:download_url] + absolute_url end - def remote_file_exists?(url) + def self.remote_file_exists?(url) uri = URI hosted_sources(url) request = Net::HTTP.new uri.host, uri.port @@ -60,7 +60,7 @@ module SlackBuilder def self.download_and_deploy(uri, tarball) remote_path = tarball[tarball.index('/')..] - if SlackBuilder.remote_file_exists?(remote_path) + if remote_file_exists?(remote_path) uri = URI hosted_sources(remote_path) return download(uri, "slackbuilds/#{tarball}").hexdigest end |
