Obsolete
/
packaging
Archived
3
0
Fork 0

Fixes sources-directory being different from “.”.

master
Luka Vandervelden 2019-08-29 00:34:17 +02:00
parent 656a640738
commit cfa33308e7
1 changed files with 4 additions and 2 deletions

View File

@ -195,8 +195,10 @@ class Package::Recipe
sources.each do |url| sources.each do |url|
next if url.scheme == "file" next if url.scheme == "file"
unless File.exists? url.filename filename = @context.sources_directory + "/" + url.filename
status = @context.run @context.sources_directory, "wget", [ url.to_s, "-O", url.filename ]
unless File.exists? filename
status = @context.run @context.sources_directory, "wget", [ url.to_s, "-O", filename ]
raise DownloadError.new self, url unless status.success? raise DownloadError.new self, url unless status.success?
end end