diff options
| author | Dominyk Tiller | 2015-01-05 02:36:03 +0000 |
|---|---|---|
| committer | Jack Nagel | 2015-01-05 00:04:23 -0500 |
| commit | e871a9195890cc3cceccaa8d1d9e6a3e0ac20eae (patch) | |
| tree | 5b30855e8c672621e8556869f8bbd8c2eef449bb | |
| parent | f937e5f92015d5e65b66db79cf68c12488d10e80 (diff) | |
| download | brew-e871a9195890cc3cceccaa8d1d9e6a3e0ac20eae.tar.bz2 | |
install: fail on devel where devel doesn't exist
Just equalises a little how we treat HEAD and devel. The former already
fails if there isn’t a head defined, It seemed logical that devel
should fail in the same way.
Closes Homebrew/homebrew#35554.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index 768759148..8ac532a97 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -53,6 +53,11 @@ module Homebrew raise "No head is defined for #{f.name}" end + # Building stable-only with --devel is an error + if ARGV.build_devel? and f.devel.nil? + raise "No devel block is defined for #{f.name}" + end + if f.installed? msg = "#{f.name}-#{f.installed_version} already installed" msg << ", it's just not linked" unless f.linked_keg.symlink? or f.keg_only? |
