aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-07-18 15:14:42 -0500
committerJack Nagel2014-07-18 15:15:12 -0500
commit2fa2f73b0a34ce883d154516240d2084318c337e (patch)
tree5faa7b2b2637aff7f5f90ec4541c2d93cdb1c0f7 /Library/Homebrew/cmd
parent99073dad6f57e2684ec5492e6c0a86ec1db5dffe (diff)
downloadhomebrew-2fa2f73b0a34ce883d154516240d2084318c337e.tar.bz2
Add a factory method that accepts a formula object
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/bottle.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 954f6eb78..e582620bb 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -125,7 +125,7 @@ module Homebrew
bottle_revision = max ? max + 1 : 0
end
- filename = Bottle::Filename.new(f.name, f.pkg_version, bottle_tag, bottle_revision)
+ filename = Bottle::Filename.create(f, bottle_tag, bottle_revision)
if bottle_filename_formula_name(filename).empty?
return ofail "Add a new regex to bottle_version.rb to parse #{f.version} from #{filename}"