From 063324a11608231dedd15e76dbf6e620e2d67214 Mon Sep 17 00:00:00 2001 From: Razvan Azamfirei Date: Tue, 18 Apr 2023 19:49:02 -0400 Subject: [PATCH] fix bump-cask-pr handling of sha256 :no_check --- Library/Homebrew/dev-cmd/bump-cask-pr.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/dev-cmd/bump-cask-pr.rb b/Library/Homebrew/dev-cmd/bump-cask-pr.rb index be951dadbd..ee0851635b 100644 --- a/Library/Homebrew/dev-cmd/bump-cask-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-cask-pr.rb @@ -135,6 +135,8 @@ module Homebrew if new_version.latest? || new_hash == :no_check opoo "Ignoring specified `--sha256=` argument." if new_hash.is_a?(String) replacement_pairs << [/"#{old_hash}"/, ":no_check"] if old_hash != :no_check + elsif old_hash == :no_check && new_hash != :no_check + replacement_pairs << [":no_check", "\"#{new_hash}\""] elsif old_hash != :no_check if new_hash.nil? || cask.languages.present? if new_hash && cask.languages.present?