Update lilac.py

This commit is contained in:
月季花中的星辰 2021-11-14 18:43:17 +00:00 committed by GitHub
parent 38a47380bd
commit 5bbae69f43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,8 +6,9 @@ def pre_build():
dt = datetime.strptime(dt, '%m %d, %Y').strftime('%Y%m%d')
for line in edit_file('PKGBUILD'):
line.startswith('pkgver='):
if line.startswith('pkgver='):
line = f'pkgver={dt}'
print(line)
update_pkgver_and_pkgrel(f'{dt}')