From 705c466bbdfde7b5e7463ed39f0e911c6b11e144 Mon Sep 17 00:00:00 2001 From: Razvan Azamfirei Date: Fri, 8 Sep 2023 12:58:07 -0400 Subject: [PATCH] bump-cask-pr: comment out odeprecated --- Library/Homebrew/dev-cmd/bump-cask-pr.rb | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Library/Homebrew/dev-cmd/bump-cask-pr.rb b/Library/Homebrew/dev-cmd/bump-cask-pr.rb index cce78e6048..14529b2a83 100644 --- a/Library/Homebrew/dev-cmd/bump-cask-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-cask-pr.rb @@ -30,7 +30,7 @@ module Homebrew switch "--no-audit", description: "Don't run `brew audit` before opening the PR." switch "--online", - description: "Run `brew audit --online` before opening the PR." + hidden: true switch "--no-style", description: "Don't run `brew style --fix` before opening the PR." switch "--no-browse", @@ -67,6 +67,7 @@ module Homebrew def bump_cask_pr args = bump_cask_pr_args.parse + # odeprecated "brew bump-cask-pr --online" if args.online? # This will be run by `brew audit` or `brew style` later so run it first to # not start spamming during normal output. Homebrew.install_bundler_gems! if !args.no_audit? || !args.no_style? @@ -268,21 +269,16 @@ module Homebrew if args.dry_run? if args.no_audit? ohai "Skipping `brew audit`" - elsif args.online? - ohai "brew audit --cask --online #{cask.full_name}" else - ohai "brew audit --cask #{cask.full_name}" + ohai "brew audit --cask --online #{cask.full_name}" end return end failed_audit = false if args.no_audit? ohai "Skipping `brew audit`" - elsif args.online? - system HOMEBREW_BREW_FILE, "audit", "--cask", "--online", cask.full_name - failed_audit = !$CHILD_STATUS.success? else - system HOMEBREW_BREW_FILE, "audit", "--cask", cask.full_name + system HOMEBREW_BREW_FILE, "audit", "--cask", "--online", cask.full_name failed_audit = !$CHILD_STATUS.success? end return unless failed_audit