versions: add bottle filenames method.

Closes #22727.
This commit is contained in:
Mike McQuaid committed 2013-09-22 09:52:05 +01:00
1 parent f5af7aeef6
commit b2c8fe7e76
1 file changed
+11
+11
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