diff options
| author | Jack Nagel | 2013-04-13 17:40:13 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-04-13 17:40:13 -0500 |
| commit | 4bd34c9624ac93885dd7216f45eeb07caf8b6822 (patch) | |
| tree | 9426f389be71c58076aa23737ae1c343cd258e12 /Library/Homebrew/formula.rb | |
| parent | 2e26afe55675e0ffea472c5214000e711f0489eb (diff) | |
| download | brew-4bd34c9624ac93885dd7216f45eeb07caf8b6822.tar.bz2 | |
Allow "devel-only" formulae
It seems only natural that this should be possible, or at the very
least, it should not result in calling methods on nil.
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index eddacf08d..cf7b50e55 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -73,7 +73,8 @@ class Formula when @head && ARGV.build_head? then @head # --HEAD when @devel && ARGV.build_devel? then @devel # --devel when @bottle && install_bottle?(self) then @bottle # bottle available - when @stable.nil? && @head then @head # head-only + when @devel && @stable.nil? then @devel # devel-only + when @head && @stable.nil? then @head # head-only else @stable end end |
