diff options
| author | Vlad Shablinsky | 2016-07-22 12:40:16 +0300 |
|---|---|---|
| committer | Xu Cheng | 2016-08-06 21:25:56 +0800 |
| commit | a59bdc4a2a429bbe5fb812bd4ca98cd437a319be (patch) | |
| tree | fb06b659420b5f144983a9d83e2971efac900861 | |
| parent | 1b88c2912b9e0fb9b03580da3707ec36e2d0c888 (diff) | |
| download | brew-a59bdc4a2a429bbe5fb812bd4ca98cd437a319be.tar.bz2 | |
formula: don't return outdated head in installed_prefix
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index d0476ec26..d3a608718 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -449,8 +449,8 @@ class Formula # and then {#stable}'s {#prefix} # @private def installed_prefix - if head && (head_prefix = latest_head_prefix) && head_prefix.directory? - head_prefix + if head && (head_version = latest_head_version) && !head_version_outdated?(head_version) + latest_head_prefix elsif devel && (devel_prefix = prefix(PkgVersion.new(devel.version, revision))).directory? devel_prefix elsif stable && (stable_prefix = prefix(PkgVersion.new(stable.version, revision))).directory? |
