diff options
| author | Mike McQuaid | 2013-02-28 22:14:59 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-03-01 17:49:09 +0000 |
| commit | 20c0ddc40100b08f26d274c550ab0051d9831d21 (patch) | |
| tree | 830de4cde08dc822678bc48b9b607baf48c27d1c /Library/Homebrew/formula_support.rb | |
| parent | 22aec1d0d97ee20fdc31e2df278378fe17f9d07f (diff) | |
| download | brew-20c0ddc40100b08f26d274c550ab0051d9831d21.tar.bz2 | |
Add non-/usr/local bottles support.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/formula_support.rb')
| -rw-r--r-- | Library/Homebrew/formula_support.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb index c9355d641..3cd221129 100644 --- a/Library/Homebrew/formula_support.rb +++ b/Library/Homebrew/formula_support.rb @@ -79,13 +79,14 @@ end class Bottle < SoftwareSpec attr_writer :url - attr_reader :revision, :root_url + attr_reader :revision, :root_url, :cellar # TODO: Can be removed when all bottles migrated to underscored cat symbols. attr_reader :cat_without_underscores def initialize super @revision = 0 + @cellar = '/usr/local/Cellar' @cat_without_underscores = false end @@ -117,6 +118,10 @@ class Bottle < SoftwareSpec val.nil? ? @root_url : @root_url = val end + def cellar val=nil + val.nil? ? @cellar : @cellar = val + end + def revision val=nil val.nil? ? @revision : @revision = val end |
