mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
Update lilac.py
This commit is contained in:
parent
2c5417bdee
commit
ca2d6daf81
1 changed files with 4 additions and 14 deletions
18
tnt/lilac.py
18
tnt/lilac.py
|
@ -1,20 +1,10 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from lilaclib import *
|
||||
|
||||
def pre_build():
|
||||
dt = _G.newver.split(None)
|
||||
dt = datetime.strptime(dt, '%m %d, %Y').strftime('%Y%m%d')
|
||||
|
||||
for line in edit_file('PKGBUILD'):
|
||||
if line.startswith('pkgver='):
|
||||
line = f'pkgver={dt}'
|
||||
|
||||
print(line)
|
||||
|
||||
update_pkgver_and_pkgrel(f'{dt}')
|
||||
|
||||
run_cmd(['updpkgsums'])
|
||||
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
|
||||
|
||||
def post_build():
|
||||
git_add_files('PKGBUILD')
|
||||
git_commit()
|
||||
git_add_files('PKGBUILD')
|
||||
git_commit()
|
||||
|
|
Loading…
Add table
Reference in a new issue