0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-22 06:00:00 +00:00

[devscripts/update-formulae] Do not change dependency section

Closes #4223
This commit is contained in:
Lesmiscore 2022-07-01 20:58:39 +09:00
parent 284a60c516
commit 5c0dc6e603
No known key found for this signature in database
GPG key ID: 0EC2B52CF86236FF

View file

@ -30,8 +30,8 @@
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)