aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 9d6ebb931..17931f21d 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -4,7 +4,8 @@ require 'vendor/multi_json'
class AbstractDownloadStrategy
def initialize name, package
@url = package.url
- @spec, @ref = package.specs.dup.shift
+ specs = package.specs
+ @spec, @ref = specs.dup.shift unless specs.empty?
end
def expand_safe_system_args args