Browse Source

minor grooming

master
Philippe Pittoli 1 year ago
parent
commit
2a38ae6d9e
  1. 3
      src/recipe.cr

3
src/recipe.cr

@ -226,11 +226,10 @@ class Package::Recipe @@ -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?