From 9d8d8cc8bb61d9d2fe55317c67b235f66de652e3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 27 Sep 2013 17:46:17 +0100 Subject: qt, qt5: fix ARGV audit warning. --- Library/Formula/qt.rb | 6 +++--- Library/Formula/qt5.rb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb index 0c90d07ae..fc1bcf9e6 100644 --- a/Library/Formula/qt.rb +++ b/Library/Formula/qt.rb @@ -22,9 +22,9 @@ class Qt < Formula depends_on "d-bus" => :optional depends_on "mysql" => :optional - odie 'qt: --with-qtdbus has been renamed to --with-d-bus' if ARGV.include? '--with-qtdbus' - odie 'qt: --with-demos-examples is no longer supported' if ARGV.include? '--with-demos-examples' - odie 'qt: --with-debug-and-release is no longer supported' if ARGV.include? '--with-debug-and-release' + odie 'qt: --with-qtdbus has been renamed to --with-d-bus' if build.include? 'with-qtdbus' + odie 'qt: --with-demos-examples is no longer supported' if build.include? 'with-demos-examples' + odie 'qt: --with-debug-and-release is no longer supported' if build.include? 'with-debug-and-release' def install ENV.universal_binary if build.universal? diff --git a/Library/Formula/qt5.rb b/Library/Formula/qt5.rb index 5627e3a01..5b17c3f77 100644 --- a/Library/Formula/qt5.rb +++ b/Library/Formula/qt5.rb @@ -22,9 +22,9 @@ class Qt5 < Formula depends_on "d-bus" => :optional depends_on "mysql" => :optional - odie 'qt5: --with-qtdbus has been renamed to --with-d-bus' if ARGV.include? '--with-qtdbus' - odie 'qt5: --with-demos-examples is no longer supported' if ARGV.include? '--with-demos-examples' - odie 'qt5: --with-debug-and-release is no longer supported' if ARGV.include? '--with-debug-and-release' + odie 'qt5: --with-qtdbus has been renamed to --with-d-bus' if build.include? 'with-qtdbus' + odie 'qt5: --with-demos-examples is no longer supported' if build.include? 'with-demos-examples' + odie 'qt5: --with-debug-and-release is no longer supported' if build.include? 'with-debug-and-release' def install ENV.universal_binary if build.universal? -- cgit v1.2.3