diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb index 6987fce8ad..daca2469a8 100644 --- a/Library/Homebrew/cmd/versions.rb +++ b/Library/Homebrew/cmd/versions.rb @@ -39,12 +39,18 @@ class Formula def bottle_filenames branch='HEAD' filenames = [] rev_list(branch).each do |sha| - filename = formula_for_sha(sha) {|f| bottle_filename f if f.bottle } + filename = formula_for_sha(sha) do |f| + bottle_block = f.class.send(:bottle) + unless bottle_block.checksums.empty? + revision = bottle_block.revision + bottle_filename f, revision + end + end unless filenames.include? filename or filename.nil? filenames << filename end end - return filenames + filenames end def pretty_relative_path