Skip to content

Commit

Permalink
bump-cask-pr: comment out odeprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanazamfirei committed Sep 11, 2023
1 parent 704b97d commit 705c466
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Library/Homebrew/dev-cmd/bump-cask-pr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def bump_cask_pr_args
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",
Expand Down Expand Up @@ -67,6 +67,7 @@ def bump_cask_pr_args
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?
Expand Down Expand Up @@ -268,21 +269,16 @@ def run_cask_audit(cask, old_contents, args:)
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
Expand Down

0 comments on commit 705c466

Please sign in to comment.