From 5c0dc6e6035c4b92aa1a254ebb0284be75dd0d2b Mon Sep 17 00:00:00 2001 From: Lesmiscore Date: Fri, 1 Jul 2022 20:58:39 +0900 Subject: [PATCH] [devscripts/update-formulae] Do not change dependency section Closes #4223 --- devscripts/update-formulae.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devscripts/update-formulae.py b/devscripts/update-formulae.py index 02b869304..96b56b932 100644 --- a/devscripts/update-formulae.py +++ b/devscripts/update-formulae.py @@ -30,8 +30,8 @@ url = tarball_file['url'] with open(filename) as r: formulae_text = r.read() -formulae_text = re.sub(r'sha256 "[0-9a-f]*?"', 'sha256 "%s"' % sha256sum, formulae_text) -formulae_text = re.sub(r'url "[^"]*?"', 'url "%s"' % url, formulae_text) +formulae_text = re.sub(r'sha256 "[0-9a-f]*?"', 'sha256 "%s"' % sha256sum, formulae_text, count=1) +formulae_text = re.sub(r'url "[^"]*?"', 'url "%s"' % url, formulae_text, count=1) with open(filename, 'w') as w: w.write(formulae_text)