upgrade: make condition clearer

This commit is contained in:
Jack Nagel 2013-07-15 23:47:03 -05:00
parent b4419992ab
commit 42cceeb4a0

View File

@ -34,7 +34,7 @@ module Homebrew extend self
oh1 "Upgrading #{outdated.length} outdated package#{outdated.length.plural_s}, with result:"
puts outdated.map{ |f| "#{f.name} #{f.version}" } * ", "
if not upgrade_pinned? and pinned.length > 0
unless upgrade_pinned? || pinned.empty?
oh1 "Not upgrading #{pinned.length} pinned package#{pinned.length.plural_s}:"
puts pinned.map{ |f| "#{f.name} #{f.version}" } * ", "
end