minor grooming

master
Philippe Pittoli 3 years ago
parent 42235d107d
commit 2a38ae6d9e

@ -226,11 +226,10 @@ class Package::Recipe
unless File.exists? filename
if url.scheme == "file"
Baguette::Log.info "Copying '#{url.filename}'"
Do.cp "#{recipe_directory}/#{url.filename}", filename
else
Baguette::Log.info "Downloading '#{url.filename}'"
status = Do.run @context.sources_directory, "wget", [ url.to_s, "-O", filename ]
raise DownloadError.new self, url unless status.success?