Skip to content

Commit

Permalink
[devscripts/update-formulae] Do not change dependency section
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesmiscore committed Jul 1, 2022
1 parent 284a60c commit 5c0dc6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devscripts/update-formulae.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 5c0dc6e

Please sign in to comment.