aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/install.rb
diff options
context:
space:
mode:
authorDominyk Tiller2015-01-05 02:36:03 +0000
committerJack Nagel2015-01-05 00:04:23 -0500
commit87a5f72aa4762861e60b14d01cb60379bfc7de0d (patch)
tree4db0848c91be3120fc22d1292c3fc299cbccc32d /Library/Homebrew/cmd/install.rb
parent8a56a70ff475a2f72c1677d4bafc9065c6bc0c88 (diff)
downloadhomebrew-87a5f72aa4762861e60b14d01cb60379bfc7de0d.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 #35554. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
-rw-r--r--Library/Homebrew/cmd/install.rb5
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?