ARGV: use include? for --HEAD
ARGV.build_head? will return true if the typo '-HEAD' is passed because it uses flag? to detect the option. However, we only filter the exact spelling of '--HEAD' in ARGV.filter_for_dependencies, and thus the HEAD property is undesirably passed to deps during installation. Since we never advertised '-H' as a valid short option for '--HEAD', just use include? instead of flag?. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
f296683409
commit
9d172f85c6
@ -89,7 +89,7 @@ module HomebrewArgvExtension
|
|||||||
end
|
end
|
||||||
|
|
||||||
def build_head?
|
def build_head?
|
||||||
flag? '--HEAD'
|
include? '--HEAD'
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_devel?
|
def build_devel?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user