Merge pull request #8831 from Rylan12/bump-formula-pr-resource-warning-fix

bump-formula-pr: don't warn for virtualenv resource
This commit is contained in:
Rylan Polster 2020-10-02 11:59:23 -04:00 committed by GitHub
commit 318a50498a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,9 @@ module Homebrew
check_closed_pull_requests(formula, tap_full_name, version: new_version, args: args) if new_version check_closed_pull_requests(formula, tap_full_name, version: new_version, args: args) if new_version
opoo "This formula has patches that may be resolved upstream." if formula.patchlist.present? opoo "This formula has patches that may be resolved upstream." if formula.patchlist.present?
opoo "This formula has resources that may need to be updated." if formula.resources.present? if formula.resources.present? && formula.resources.any? { |resource| resource.name != "homebrew-virtualenv" }
opoo "This formula has resources that may need to be updated."
end
requested_spec = :stable requested_spec = :stable
formula_spec = formula.stable formula_spec = formula.stable