From f5289deee7bcab63883aee556af28cbbf13d403d 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 --- library/packaging/homebrew | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/packaging/homebrew b/library/packaging/homebrew index a74091542e2..12fbf89c0f4 100644 --- a/library/packaging/homebrew +++ b/library/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':