aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-10-21 13:46:09 -0700
committerMisty De Meo2013-10-21 13:52:49 -0700
commit478bf23076f39086455cd022b82157c40db11b29 (patch)
tree367c3e770ba26098e0413eb59bb674ff40b5af38 /Library
parente7fd0e5d66ba9f0fb45278c791a8b69d8c19075a (diff)
downloadhomebrew-478bf23076f39086455cd022b82157c40db11b29.tar.bz2
Update Leopard/Tiger bottle tags
* PPC bottles are in the os_cpu format, e.g. :tiger_g3 * Intel bottles are the bare cat, as usual * 64-bit bottles have _64 appended to them, e.g. :tiger_g5_64 or :leopard_64
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/bottles.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb
index a8d1dee2d..f82bbde90 100644
--- a/Library/Homebrew/bottles.rb
+++ b/Library/Homebrew/bottles.rb
@@ -81,7 +81,13 @@ def bottle_tag
when "10.6"
Hardware::CPU.is_64_bit? ? :snow_leopard : :snow_leopard_32
else
- Hardware::CPU.type == :ppc ? Hardware::CPU.family : MacOS.cat
+ # Return, e.g., :tiger_g3, :leopard_g5_64, :leopard_64 (which is Intel)
+ if Hardware::CPU.type == :ppc
+ tag = "#{MacOS.cat}_#{Hardware::CPU.family}".to_sym
+ else
+ tag = MacOS.cat
+ end
+ MacOS.prefer_64_bit? ? "#{tag}_64".to_sym : tag
end
end