aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-04-16 14:18:07 -0500
committerJack Nagel2013-04-16 14:18:23 -0500
commit1426b92a828821c01a3beab21a23ece79b303f23 (patch)
tree47c98551011d8ea60fba102f62e0d8262b4036c9 /Library
parent0fb4f9c42678aeade936941af26f2e87ddfe7d46 (diff)
downloadbrew-1426b92a828821c01a3beab21a23ece79b303f23.tar.bz2
Only dup and shift when specs hash is populated
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