From 267465ea6f098a83905f556f9e48189d3972bde6 Mon Sep 17 00:00:00 2001 From: Corey Prophitt Date: Wed, 2 Dec 2015 15:53:46 -0800 Subject: cleanup: don't warn when skipping pinned formula. Closes Homebrew/homebrew#46604. Signed-off-by: Mike McQuaid --- Library/Homebrew/cmd/cleanup.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb index 1014f3de6..c8b158dd1 100644 --- a/Library/Homebrew/cmd/cleanup.rb +++ b/Library/Homebrew/cmd/cleanup.rb @@ -39,9 +39,10 @@ module Homebrew else eligible_kegs.each { |keg| opoo "Skipping (old) keg-only: #{keg}" } end - elsif f.installed_prefixes.any? + elsif f.installed_prefixes.any? && !f.pinned? # If the cellar only has one version installed, don't complain - # that we can't tell which one to keep. + # that we can't tell which one to keep. Don't complain at all if the + # only installed version is a pinned formula. opoo "Skipping #{f.full_name}: most recent version #{f.pkg_version} not installed" end end -- cgit v1.2.3