aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2014-02-26 20:32:38 -0800
committerAdam Vandenberg2014-02-27 08:21:24 -0800
commita70217d889664867fe2b3f0e709bf417dfb27d1c (patch)
tree92fb9639672b986ffc79e22a5271e787c7041ddf /Library/Formula
parent532717683a70bb71a9c867c6aef88efe8fb1510a (diff)
downloadhomebrew-a70217d889664867fe2b3f0e709bf417dfb27d1c.tar.bz2
pyqt: use Formula[]
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pyqt.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/pyqt.rb b/Library/Formula/pyqt.rb
index 287a6073e..66623b413 100644
--- a/Library/Formula/pyqt.rb
+++ b/Library/Formula/pyqt.rb
@@ -8,7 +8,7 @@ class Pyqt < Formula
depends_on :python => :recommended
depends_on :python3 => :optional
- if !Formula.factory("python").installed? && build.with?("python") &&
+ if !Formula["python"].installed? && build.with?("python") &&
build.with?("python3")
odie <<-EOS.undent
pyqt: You cannot use system Python 2 and Homebrew's Python 3 simultaneously.
@@ -108,7 +108,7 @@ class Pyqt < Formula
EOS
pythons.each do |python, version|
- unless Formula.factory(python).installed?
+ unless Formula[python].installed?
ENV["PYTHONPATH"] = HOMEBREW_PREFIX/"lib/python#{version}/site-packages"
end
system python, "test.py"