From 5549c2cdd03ceb11a105ea1d53ea4252ee80161a Mon Sep 17 00:00:00 2001 From: vyrak bunleang Date: Mon, 17 Mar 2014 16:56:54 -0600 Subject: [PATCH] prevent state from changing from head to installed allows for --HEAD to be included in brew install command --- packaging/homebrew | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/homebrew b/packaging/homebrew index a74091542e2..12fbf89c0f4 100644 --- a/packaging/homebrew +++ b/packaging/homebrew @@ -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':