prevent state from changing from head to installed

allows for --HEAD to be included in brew install command
reviewable/pr18780/r1
vyrak bunleang 11 years ago
parent 950c0ebce6
commit 5549c2cdd0

@ -756,8 +756,10 @@ def main():
path = ['/usr/local/bin']
state = p['state']
if state in ('present', 'installed', 'head'):
if state in ('present', 'installed'):
state = 'installed'
if state in ('head'):
state = 'head'
if state in ('latest', 'upgraded'):
state = 'upgraded'
if state == 'linked':

Loading…
Cancel
Save