versions: add bottle filenames method.

Closes Homebrew/homebrew#22727.
This commit is contained in:
Mike McQuaid 2013-09-21 15:15:07 +01:00
parent 22e47ffa43
commit 82eee276e3

View File

@ -36,6 +36,17 @@ class Formula
return versions
end
def bottle_filenames branch='HEAD'
filenames = []
rev_list(branch).each do |sha|
filename = formula_for_sha(sha) {|f| bottle_filename f }
unless filenames.include? filename or filename.nil?
filenames << filename
end
end
return filenames
end
def pretty_relative_path
if Pathname.pwd == repository
entry_name