minor grooming
This commit is contained in:
parent
42235d107d
commit
2a38ae6d9e
@ -226,11 +226,10 @@ class Package::Recipe
|
|||||||
unless File.exists? filename
|
unless File.exists? filename
|
||||||
if url.scheme == "file"
|
if url.scheme == "file"
|
||||||
Baguette::Log.info "Copying '#{url.filename}'"
|
Baguette::Log.info "Copying '#{url.filename}'"
|
||||||
|
|
||||||
Do.cp "#{recipe_directory}/#{url.filename}", filename
|
Do.cp "#{recipe_directory}/#{url.filename}", filename
|
||||||
|
|
||||||
else
|
else
|
||||||
Baguette::Log.info "Downloading '#{url.filename}'"
|
Baguette::Log.info "Downloading '#{url.filename}'"
|
||||||
|
|
||||||
status = Do.run @context.sources_directory, "wget", [ url.to_s, "-O", filename ]
|
status = Do.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?
|
||||||
|
Reference in New Issue
Block a user