upgrade: tighten installed precondition
This commit is contained in:
parent
3687cbc21b
commit
26a076eef5
@ -25,7 +25,7 @@ module Homebrew extend self
|
||||
outdated = ARGV.formulae.select do |f|
|
||||
if f.installed?
|
||||
onoe "#{f}-#{f.installed_version} already installed"
|
||||
elsif not f.rack.exist? or f.rack.children.empty?
|
||||
elsif not f.rack.directory? or f.rack.subdirs.empty?
|
||||
onoe "#{f} not installed"
|
||||
else
|
||||
true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user