From 82745ff9b6eb8522311a788ef1c764ac590bcaf5 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Wed, 27 May 2015 20:48:32 +0800 Subject: cleanup: use Formula#full_name --- Library/Homebrew/cmd/cleanup.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb index 3efb349e7..7c29369c7 100644 --- a/Library/Homebrew/cmd/cleanup.rb +++ b/Library/Homebrew/cmd/cleanup.rb @@ -50,7 +50,7 @@ module Homebrew elsif f.rack.subdirs.length > 1 # If the cellar only has one version installed, don't complain # that we can't tell which one to keep. - opoo "Skipping #{f.name}: most recent version #{f.pkg_version} not installed" + opoo "Skipping #{f.full_name}: most recent version #{f.pkg_version} not installed" end end @@ -120,7 +120,7 @@ module Homebrew elsif formula.opt_prefix.directory? # SHA records were added to INSTALL_RECEIPTS the same day as opt symlinks Formula.installed. - select { |f| f.deps.any? { |d| d.name == formula.name } }. + select { |f| f.deps.any? { |d| d.to_formula.full_name == formula.full_name } }. all? { |f| f.rack.subdirs.all? { |keg| Tab.for_keg(keg).HEAD } } end end -- cgit v1.2.3