From f0d29d6d49fda0796f1cb7d686e4ce87b0ef6d5b Mon Sep 17 00:00:00 2001 From: hyuraku <32809703+hyuraku@users.noreply.github.com> Date: Wed, 15 Jun 2022 21:53:15 +0900 Subject: [PATCH 1/3] repair brew outdated --greedy --- Library/Homebrew/cmd/outdated.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/cmd/outdated.rb b/Library/Homebrew/cmd/outdated.rb index 568bf925ae..e2424c6513 100644 --- a/Library/Homebrew/cmd/outdated.rb +++ b/Library/Homebrew/cmd/outdated.rb @@ -93,6 +93,8 @@ module Homebrew def print_outdated(formulae_or_casks, args:) formulae_or_casks.each do |formula_or_cask| if formula_or_cask.is_a?(Formula) + next if args.greedy? || args.greedy_latest? || args.greedy_auto_updates? + f = formula_or_cask if verbose? From 0de4855bd84c44d8f84e71b250913121847d6882 Mon Sep 17 00:00:00 2001 From: hyuraku <32809703+hyuraku@users.noreply.github.com> Date: Mon, 20 Jun 2022 21:33:17 +0900 Subject: [PATCH 2/3] improve description --- Library/Homebrew/cmd/outdated.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/cmd/outdated.rb b/Library/Homebrew/cmd/outdated.rb index e2424c6513..cea4320531 100644 --- a/Library/Homebrew/cmd/outdated.rb +++ b/Library/Homebrew/cmd/outdated.rb @@ -37,13 +37,13 @@ module Homebrew "formula is outdated. Otherwise, the repository's HEAD will only be checked for "\ "updates when a new stable or development version has been released." switch "--greedy", - description: "Print outdated casks with `auto_updates true` or `version :latest`." + description: "Print include outdated casks with `auto_updates true` or `version :latest`." switch "--greedy-latest", - description: "Print outdated casks including those with `version :latest`." + description: "Print include outdated casks including those with `version :latest`." switch "--greedy-auto-updates", - description: "Print outdated casks including those with `auto_updates true`." + description: "Print include outdated casks including those with `auto_updates true`." conflicts "--quiet", "--verbose", "--json" conflicts "--formula", "--cask" @@ -93,8 +93,6 @@ module Homebrew def print_outdated(formulae_or_casks, args:) formulae_or_casks.each do |formula_or_cask| if formula_or_cask.is_a?(Formula) - next if args.greedy? || args.greedy_latest? || args.greedy_auto_updates? - f = formula_or_cask if verbose? From 52279d588d11402ea572f5bd7427518a9f6ac213 Mon Sep 17 00:00:00 2001 From: hyuraku <32809703+hyuraku@users.noreply.github.com> Date: Mon, 20 Jun 2022 23:42:44 +0900 Subject: [PATCH 3/3] repair description --- Library/Homebrew/cmd/outdated.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cmd/outdated.rb b/Library/Homebrew/cmd/outdated.rb index cea4320531..128fc23539 100644 --- a/Library/Homebrew/cmd/outdated.rb +++ b/Library/Homebrew/cmd/outdated.rb @@ -37,13 +37,13 @@ module Homebrew "formula is outdated. Otherwise, the repository's HEAD will only be checked for "\ "updates when a new stable or development version has been released." switch "--greedy", - description: "Print include outdated casks with `auto_updates true` or `version :latest`." + description: "Also include outdated casks with `auto_updates true` or `version :latest`." switch "--greedy-latest", - description: "Print include outdated casks including those with `version :latest`." + description: "Also include outdated casks including those with `version :latest`." switch "--greedy-auto-updates", - description: "Print include outdated casks including those with `auto_updates true`." + description: "Also include outdated casks including those with `auto_updates true`." conflicts "--quiet", "--verbose", "--json" conflicts "--formula", "--cask"