aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominyk Tiller2016-08-28 23:55:43 +0100
committerDominyk Tiller2016-08-29 19:48:23 +0100
commitff377bebc036b12c09f39ff1df63ed64f6e0d435 (patch)
tree915545bb5f0b05b111c441c0e53a9799684b06e6
parent8e29cf1b1d39f5d86aaeb702597aa34d97cd763a (diff)
downloadbrew-ff377bebc036b12c09f39ff1df63ed64f6e0d435.tar.bz2
bottles: translate foo@1.2 to foo:1.2
-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)