bump-formula-pr: add warnings for patches and resources

This commit is contained in:
Seeker 2020-08-13 16:05:50 -07:00
parent c983d85eea
commit 8df618958d

View File

@ -133,6 +133,9 @@ module Homebrew
new_version = args.version new_version = args.version
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 resources that may need to be updated." if formula.resources.present?
requested_spec = :stable requested_spec = :stable
formula_spec = formula.stable formula_spec = formula.stable
odie "#{formula}: no #{requested_spec} specification found!" unless formula_spec odie "#{formula}: no #{requested_spec} specification found!" unless formula_spec