aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorWilliam Roe2017-03-27 11:30:36 +0100
committerWilliam Roe2017-03-27 11:30:36 +0100
commit70446d9112c0d42ca1ab469af07716bb7281169e (patch)
treed934afd66f725cc0db6d61291317514e76ad7d8a /Library/Homebrew/cmd
parent755d43d46dc20b9e646909e08de482141de83777 (diff)
downloadbrew-70446d9112c0d42ca1ab469af07716bb7281169e.tar.bz2
Add pinned version to outdated output
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/outdated.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/outdated.rb b/Library/Homebrew/cmd/outdated.rb
index a18f4e399..a576162a0 100644
--- a/Library/Homebrew/cmd/outdated.rb
+++ b/Library/Homebrew/cmd/outdated.rb
@@ -64,7 +64,9 @@ module Homebrew
"#{full_name} (#{kegs.map(&:version).join(", ")})"
end.join(", ")
- puts "#{outdated_versions} < #{current_version}"
+ pinned_version = " [pinned at #{f.pinned_version}]" if f.pinned?
+
+ puts "#{outdated_versions} < #{current_version}#{pinned_version}"
else
puts f.full_installed_specified_name
end