bump-formula-pr: don't warn for virtualenv resource

This commit is contained in:
Rylan Polster 2020-10-01 14:40:36 -04:00
parent 2331927a34
commit f5c07a2991

View File

@ -145,7 +145,9 @@ module Homebrew
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 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
formula_spec = formula.stable