mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
git-update.py: Do not wipe repository descriptions
Only update repository descriptions if there is at least one package in the package base meta data. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
ed7fb91f41
commit
2d96b51cb5
1 changed files with 5 additions and 3 deletions
|
@ -239,6 +239,8 @@ save_srcinfo(srcinfo, db, cur, user)
|
|||
|
||||
db.close()
|
||||
|
||||
with open(git_dir + '/description', 'w') as f:
|
||||
pkginfo = srcinfo.GetMergedPackage(list(srcinfo.GetPackageNames())[0])
|
||||
pkglist = list(srcinfo.GetPackageNames())
|
||||
if len(pkglist) > 0:
|
||||
with open(git_dir + '/description', 'w') as f:
|
||||
pkginfo = srcinfo.GetMergedPackage(pkglist[0])
|
||||
f.write(pkginfo['pkgdesc'])
|
||||
|
|
Loading…
Add table
Reference in a new issue