aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-09-22 15:59:55 +0100
committerMike McQuaid2013-09-22 16:01:02 +0100
commitc8832868407cad5156f20f09237e4db989314622 (patch)
tree1cd9be75dd5a1badf51e93d81c1dc202004a1ff9 /Library
parent82eee276e3cbd5ace72606273484022e69390334 (diff)
downloadbrew-c8832868407cad5156f20f09237e4db989314622.tar.bz2
versions: use bottle_filename only if f.bottle.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/versions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb
index bfb8f14d9..6987fce8a 100644
--- a/Library/Homebrew/cmd/versions.rb
+++ b/Library/Homebrew/cmd/versions.rb
@@ -39,7 +39,7 @@ class Formula
def bottle_filenames branch='HEAD'
filenames = []
rev_list(branch).each do |sha|
- filename = formula_for_sha(sha) {|f| bottle_filename f }
+ filename = formula_for_sha(sha) {|f| bottle_filename f if f.bottle }
unless filenames.include? filename or filename.nil?
filenames << filename
end