aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorSamuel John2013-08-15 02:03:55 +0200
committerSamuel John2013-08-15 02:03:55 +0200
commita7a35efff4369122db9fa0cb10332303ca0f81ad (patch)
tree4cbf6f5d544e0e497b27b12099d97e30a1939b06 /Library
parentcae03e33630ccae6d3b11e63f5fe6a61d8b989ea (diff)
downloadbrew-a7a35efff4369122db9fa0cb10332303ca0f81ad.tar.bz2
Unlinked brewed python -> use system python
Up to now a brewed Python, even if not linked, was preferred over and external Python, so that you had to completely `brew rm python` to have a formula link against external (mostly system) Python. From now on it is okay to `brew unlink python`.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/requirements/python_dependency.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb
index e693b1f3e..5eca9cf30 100644
--- a/Library/Homebrew/requirements/python_dependency.rb
+++ b/Library/Homebrew/requirements/python_dependency.rb
@@ -191,11 +191,11 @@ class PythonInstalled < Requirement
end
end
- # Is the Python brewed (and linked)?
+ # Is the brewed Python installed
def brewed?
@brewed ||= begin
require 'formula'
- (Formula.factory(@name).opt_prefix/"bin/#{@name}").executable?
+ Formula.factory(@name).linked_keg.exist?
end
end