From 36b2af2e0f5a72f0eccdec0c929a89188dc0f0dc Mon Sep 17 00:00:00 2001 From: Andrew Janke Date: Wed, 13 Apr 2016 02:53:41 -0400 Subject: superenv: fix formula prefix path to consider revisions Old logic doesn't include revision. This fixes that, and passes the whole formula prefix path to avoid duplicating the path-construction logic. Closes #80. Signed-off-by: Andrew Janke --- Library/Homebrew/extend/ENV/super.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Library/Homebrew') diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index 8566c7d0d..c3ae3362f 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -69,8 +69,7 @@ module Superenv self["HOMEBREW_LIBRARY_PATHS"] = determine_library_paths self["HOMEBREW_DEPENDENCIES"] = determine_dependencies unless formula.nil? - self["HOMEBREW_FORMULA"] = formula.name - self["HOMEBREW_FORMULA_VERSION"] = formula.version + self["HOMEBREW_FORMULA_PREFIX"] = formula.prefix end if MacOS::Xcode.without_clt? || (MacOS::Xcode.installed? && MacOS::Xcode.version.to_i >= 7) -- cgit v1.2.3