From 2fa2f73b0a34ce883d154516240d2084318c337e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 18 Jul 2014 15:14:42 -0500 Subject: Add a factory method that accepts a formula object --- Library/Homebrew/cmd/bottle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') 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}" -- cgit v1.2.3