Archived
3
0

minor grooming

This commit is contained in:
Philippe Pittoli 2021-03-10 02:45:01 +01:00
parent 42235d107d
commit 2a38ae6d9e

View File

@ -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?