Update lilac.py

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

View file

@ -3,7 +3,7 @@ from lilaclib import *
def pre_build():
dt = _G.newver.split(None)
dt = datetime.strptime(dt, '%d-%b-%Y %H:%M').strftime('%Y%m%d.%H')
dt = datetime.strptime(dt, '%m %d, %Y').strftime('%Y%m%d')
for line in edit_file('PKGBUILD'):
line.startswith('pkgver='):