aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/software_spec.rb
diff options
context:
space:
mode:
authorJack Nagel2014-03-10 14:56:02 -0500
committerJack Nagel2014-03-10 14:56:02 -0500
commit3902a4bc58292747acdda79c4bb8479dec044014 (patch)
tree79f794c588bbbc9cacc9b611099a37500978e905 /Library/Homebrew/software_spec.rb
parent2db33e73cdb2ab78db23db9c670cdbe285def368 (diff)
downloadhomebrew-3902a4bc58292747acdda79c4bb8479dec044014.tar.bz2
Wrap cellar compatibility check in a method
Diffstat (limited to 'Library/Homebrew/software_spec.rb')
-rw-r--r--Library/Homebrew/software_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb
index 9574dd2d3..4706e5ab4 100644
--- a/Library/Homebrew/software_spec.rb
+++ b/Library/Homebrew/software_spec.rb
@@ -121,6 +121,10 @@ class Bottle
@cellar = spec.cellar
@revision = spec.revision
end
+
+ def compatible_cellar?
+ cellar == :any || cellar == HOMEBREW_CELLAR.to_s
+ end
end
class BottleSpecification