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`.
This commit is contained in:
Samuel John 2013-08-15 02:03:55 +02:00
parent cae03e3363
commit a7a35efff4

View File

@ -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