install: fix --HEAD for formulae with head and devel but no stable
This commit is contained in:
parent
3f318b8ed4
commit
c6dee041eb
@ -49,15 +49,15 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
# devel-only without --devel is an error
|
# devel-only without --devel is an error
|
||||||
if not ARGV.build_devel? and f.stable.nil?
|
if not ARGV.build_devel? and f.stable.nil? and f.head.nil?
|
||||||
if f.head.nil?
|
|
||||||
raise <<-EOS.undent
|
raise <<-EOS.undent
|
||||||
#{f.name} is a devel-only formula
|
#{f.name} is a devel-only formula
|
||||||
Install with `brew install --devel #{f.name}`
|
Install with `brew install --devel #{f.name}`
|
||||||
EOS
|
EOS
|
||||||
else
|
|
||||||
raise "#{f.name} has no stable download, please choose --devel or --HEAD"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if ARGV.build_stable? and f.stable.nil?
|
||||||
|
raise "#{f.name} has no stable download, please choose --devel or --HEAD"
|
||||||
end
|
end
|
||||||
|
|
||||||
# --HEAD, fail with no head defined
|
# --HEAD, fail with no head defined
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user