aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils/bottles.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/bottles.rb b/Library/Homebrew/utils/bottles.rb
index d1798ecc9..927963bc1 100644
--- a/Library/Homebrew/utils/bottles.rb
+++ b/Library/Homebrew/utils/bottles.rb
@@ -56,7 +56,10 @@ module Utils
class Bintray
def self.package(formula_name)
- formula_name.to_s.tr("+", "x")
+ package_name = formula_name.to_s.dup
+ package_name.tr!("+", "x")
+ package_name.sub!(/(.)@(\d)/, "\\1:\\2") # Handle foo@1.2 style formulae.
+ package_name
end
def self.repository(tap = nil)