diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 3241da95d3..9e73fc33c9 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -915,7 +915,7 @@ module Homebrew break if previous_version && current_version != previous_version end - if current_version == previous_version && + if current_version == newest_committed_version && current_checksum != newest_committed_checksum problem( "stable sha256 changed without the version also changing; " \