From f71f74da4adaef5464531cd32947524434689f31 Mon Sep 17 00:00:00 2001 From: zdcthomas Date: Mon, 3 Sep 2018 21:44:07 -0600 Subject: [PATCH 1/2] removes auto updates warning if greedy flag is included --- Library/Homebrew/cask/cmd/upgrade.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cask/cmd/upgrade.rb b/Library/Homebrew/cask/cmd/upgrade.rb index 7218a8d199..d856f236b0 100644 --- a/Library/Homebrew/cask/cmd/upgrade.rb +++ b/Library/Homebrew/cask/cmd/upgrade.rb @@ -25,8 +25,8 @@ module Hbc oh1 "No Casks to upgrade" return end - - ohai "Casks with `auto_updates` or `version :latest` will not be upgraded" if args.empty? + + ohai "Casks with `auto_updates` or `version :latest` will not be upgraded" if args.empty? && !greedy? oh1 "Upgrading #{Formatter.pluralize(outdated_casks.length, "outdated package")}, with result:" puts outdated_casks.map { |f| "#{f.full_name} #{f.version}" } * ", " From 5cca3315cfb5b9ce954a442c5e2cbde48eaf8554 Mon Sep 17 00:00:00 2001 From: zdcthomas Date: Mon, 3 Sep 2018 22:08:14 -0600 Subject: [PATCH 2/2] fixes trailing whitespace --- Library/Homebrew/cask/cmd/upgrade.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/cmd/upgrade.rb b/Library/Homebrew/cask/cmd/upgrade.rb index d856f236b0..658b50458a 100644 --- a/Library/Homebrew/cask/cmd/upgrade.rb +++ b/Library/Homebrew/cask/cmd/upgrade.rb @@ -25,7 +25,7 @@ module Hbc oh1 "No Casks to upgrade" return end - + ohai "Casks with `auto_updates` or `version :latest` will not be upgraded" if args.empty? && !greedy? oh1 "Upgrading #{Formatter.pluralize(outdated_casks.length, "outdated package")}, with result:" puts outdated_casks.map { |f| "#{f.full_name} #{f.version}" } * ", "