aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements
diff options
context:
space:
mode:
authorSamuel John2013-08-15 02:03:55 +0200
committerSamuel John2013-08-15 02:03:55 +0200
commit0b269c3af72d67c3582f96d833b99a09b5c71557 (patch)
tree9f76dc564231b0a7b33cbc6594e0da5a886a9373 /Library/Homebrew/requirements
parentde885ecdb0889d1246eda3621cb5d89d46130b7e (diff)
downloadhomebrew-0b269c3af72d67c3582f96d833b99a09b5c71557.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/Homebrew/requirements')
-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