Archived
3
0

Fixes sources-directory being different from “.”.

This commit is contained in:
Luka Vandervelden 2019-08-29 00:34:17 +02:00
parent 656a640738
commit cfa33308e7

View File

@ -195,8 +195,10 @@ class Package::Recipe
sources.each do |url|
next if url.scheme == "file"
unless File.exists? url.filename
status = @context.run @context.sources_directory, "wget", [ url.to_s, "-O", url.filename ]
filename = @context.sources_directory + "/" + 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?
end