diff options
author | Lesmiscore <nao20010128@gmail.com> | 2022-07-01 20:58:39 +0900 |
---|---|---|
committer | Lesmiscore <nao20010128@gmail.com> | 2022-07-01 20:58:48 +0900 |
commit | 5c0dc6e6035c4b92aa1a254ebb0284be75dd0d2b (patch) | |
tree | 06faa3be2d6e57f44d12b137063a5dc9dc424e67 /devscripts/update-formulae.py | |
parent | 284a60c51600cdee55f025270f8b223d2c45a154 (diff) | |
download | hypervideo-pre-5c0dc6e6035c4b92aa1a254ebb0284be75dd0d2b.tar.lz hypervideo-pre-5c0dc6e6035c4b92aa1a254ebb0284be75dd0d2b.tar.xz hypervideo-pre-5c0dc6e6035c4b92aa1a254ebb0284be75dd0d2b.zip |
[devscripts/update-formulae] Do not change dependency section
Closes #4223
Diffstat (limited to 'devscripts/update-formulae.py')
-rw-r--r-- | devscripts/update-formulae.py | 4 |
1 files 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) |