From 1218e1ca658dacb49654562dae8a3cd79831f446 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 26 Feb 2014 20:33:05 -0800 Subject: qscintilla2: use Formula[] --- Library/Formula/qscintilla2.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/qscintilla2.rb b/Library/Formula/qscintilla2.rb index 10a6d9d2f..a521959fd 100644 --- a/Library/Formula/qscintilla2.rb +++ b/Library/Formula/qscintilla2.rb @@ -4,7 +4,7 @@ class PythonEnvironment < Requirement fatal true satisfy do - !(!Formula.factory("python").installed? && ARGV.include?("--without-python") && ARGV.include?("--with-python3")) + !(!Formula["python"].installed? && ARGV.include?("--without-python") && ARGV.include?("--with-python3")) end def message @@ -84,7 +84,7 @@ class Qscintilla2 < Formula assert("QsciLexer" in dir(PyQt4.Qsci)) 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" -- cgit v1.2.3