Change to abort if no precompiled binary nor source is available

parent d47fad3f
...@@ -171,7 +171,9 @@ def download ...@@ -171,7 +171,9 @@ def download
url = @pkg.get_url(@device[:architecture]) url = @pkg.get_url(@device[:architecture])
source = @pkg.is_source?(@device[:architecture]) source = @pkg.is_source?(@device[:architecture])
if !source if !url
abort "No precompiled binary for #{@device[:architecture]} nor source is available."
elsif !source
puts "Precompiled binary available, downloading..." puts "Precompiled binary available, downloading..."
elsif @pkg.build_from_source elsif @pkg.build_from_source
puts "Downloading source..." puts "Downloading source..."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment