aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/brew.h.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/brew.h.rb')
-rw-r--r--Library/Homebrew/brew.h.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb
index 73da9790f..ff45a4ad8 100644
--- a/Library/Homebrew/brew.h.rb
+++ b/Library/Homebrew/brew.h.rb
@@ -199,7 +199,7 @@ def info f
kids=f.prefix.parent.children
kids.each do |keg|
print "#{keg} (#{keg.abv})"
- print " *" if f.prefix == keg and kids.length > 1
+ print " *" if f.installed_prefix == keg and kids.length > 1
puts
end
else
@@ -258,7 +258,7 @@ def cleanup name
if f.installed? and formula_cellar.directory?
kids = f.prefix.parent.children
kids.each do |keg|
- next if f.prefix == keg
+ next if f.installed_prefix == keg
print "Uninstalling #{keg}..."
FileUtils.rm_rf keg
puts