Fixes sources-directory being different from “.”.
parent
656a640738
commit
cfa33308e7
|
@ -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
|
||||||
|
|
Reference in New Issue