aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-09-07 11:08:51 -0500
committerJack Nagel2013-09-07 11:09:32 -0500
commit4489a8684f258c6a56d3e44397fae15bc6784ddb (patch)
tree5c02de047b1c613417ace2adba68d67c8ffdb330 /Library
parent771a28427cc241f957a030502b386d0fd9bfa5b7 (diff)
downloadbrew-4489a8684f258c6a56d3e44397fae15bc6784ddb.tar.bz2
Rewrite conditions in more natural way
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index b2de046d0..26a1b175f 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -39,7 +39,7 @@ class FormulaInstaller
if f.installed?
msg = "#{f}-#{f.installed_version} already installed"
- msg << ", it's just not linked" if not f.linked_keg.symlink? and not f.keg_only?
+ msg << ", it's just not linked" unless f.linked_keg.symlink? or f.keg_only?
raise FormulaAlreadyInstalledError, msg
end
@@ -314,7 +314,7 @@ class FormulaInstaller
end
def caveats
- if (not f.keg_only?) and ARGV.homebrew_developer?
+ if ARGV.homebrew_developer? and not f.keg_only?
audit_bin
audit_sbin
audit_lib