mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-28 11:59:43 -05:00
Rewrite conditions in more natural way
This commit is contained in:
1 parent
9bb326dab3
commit
b448ab7601
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user