From c7a527e0106295bb579716922f49c834fb3f9998 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 22 Mar 2023 10:58:37 +0100 Subject: gcc-latest: Added a patch for immutable structs --- lib/download.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/download.rb') 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 -- cgit v1.2.3