update references to homebrew-virtualenv resources
This commit is contained in:
parent
43648100b4
commit
0109ce58be
@ -145,7 +145,7 @@ 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?
|
||||
if formula.resources.present? && formula.resources.any? { |resource| resource.name != "homebrew-virtualenv" }
|
||||
if formula.resources.any? { |resource| !resource.name.start_with?("homebrew-") }
|
||||
opoo "This formula has resources that may need to be updated."
|
||||
end
|
||||
|
||||
@ -339,8 +339,7 @@ module Homebrew
|
||||
run_audit(formula, alias_rename, old_contents, args: args)
|
||||
|
||||
pr_message = "Created with `brew bump-formula-pr`."
|
||||
if resources_checked.nil? && formula.resources.present? &&
|
||||
formula.resources.any? { |resource| resource.name != "homebrew-virtualenv" }
|
||||
if resources_checked.nil? && formula.resources.any? { |resource| !resource.name.start_with?("homebrew-") }
|
||||
pr_message += <<~EOS
|
||||
|
||||
|
||||
|
||||
@ -289,7 +289,7 @@ module Language
|
||||
targets = Array(targets)
|
||||
targets.each do |t|
|
||||
if t.respond_to? :stage
|
||||
next if t.name == "homebrew-virtualenv"
|
||||
next if t.name.start_with? "homebrew-"
|
||||
|
||||
t.stage { do_install Pathname.pwd }
|
||||
else
|
||||
|
||||
@ -142,9 +142,8 @@ module PyPI
|
||||
return
|
||||
end
|
||||
|
||||
# Check whether resources already exist (excluding homebrew-virtualenv)
|
||||
if formula.resources.blank? ||
|
||||
(formula.resources.length == 1 && formula.resources.first.name == "homebrew-virtualenv")
|
||||
# Check whether resources already exist (excluding virtualenv dependencies)
|
||||
if formula.resources.all? { |resource| resource.name.start_with?("homebrew-") }
|
||||
# Place resources above install method
|
||||
inreplace_regex = / def install/
|
||||
new_resource_blocks += " def install"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user