versions: use bottle_filename only if f.bottle.

This commit is contained in:
Mike McQuaid 2013-09-22 15:59:55 +01:00
parent 82eee276e3
commit c883286840

View File

@ -39,7 +39,7 @@ class Formula
def bottle_filenames branch='HEAD' def bottle_filenames branch='HEAD'
filenames = [] filenames = []
rev_list(branch).each do |sha| 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? unless filenames.include? filename or filename.nil?
filenames << filename filenames << filename
end end