utils/pypi: allow overwriting resource patches
Signed-off-by: Michael Cho <michael@michaelcho.dev>
This commit is contained in:
parent
bb753a6c48
commit
393a97f868
@ -370,7 +370,18 @@ module PyPI
|
|||||||
new_resource_blocks += " def install"
|
new_resource_blocks += " def install"
|
||||||
else
|
else
|
||||||
# Replace existing resource blocks with new resource blocks
|
# Replace existing resource blocks with new resource blocks
|
||||||
inreplace_regex = / (resource .* do\s+url .*\s+sha256 .*\s+ end\s*)+/
|
inreplace_regex = /
|
||||||
|
\ \ (
|
||||||
|
resource\ .*\ do\s+
|
||||||
|
url\ .*\s+
|
||||||
|
sha256\ .*\s+
|
||||||
|
((\#.*\s+)*
|
||||||
|
patch\ (.*\ )?do\s+
|
||||||
|
url\ .*\s+
|
||||||
|
sha256\ .*\s+
|
||||||
|
end\s+)*
|
||||||
|
end\s+)+
|
||||||
|
/x
|
||||||
new_resource_blocks += " "
|
new_resource_blocks += " "
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user