aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorey Prophitt2015-12-02 15:53:46 -0800
committerMike McQuaid2015-12-04 18:07:11 +0000
commit267465ea6f098a83905f556f9e48189d3972bde6 (patch)
treef732f9378d2e84a873cdc1a3a3d58a7020f59d26
parent199088719146124dd9dd4965d27a2ee3ee210a58 (diff)
downloadbrew-267465ea6f098a83905f556f9e48189d3972bde6.tar.bz2
cleanup: don't warn when skipping pinned formula.
Closes Homebrew/homebrew#46604. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Homebrew/cmd/cleanup.rb5
1 files changed, 3 insertions, 2 deletions
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