git-update.py: Update repository description

Use the package description of the first package as the Git repository
description.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-12-27 12:32:14 +01:00
parent c3c110c09d
commit 9ed559eb33

View file

@ -211,3 +211,7 @@ db = mysql.connector.connect(host=aur_db_host, user=aur_db_user,
cur = db.cursor()
save_srcinfo(srcinfo, db, cur, user)
db.close()
with open(git_dir + '/description', 'w') as f:
pkginfo = srcinfo.GetMergedPackage(list(srcinfo.GetPackageNames())[0])
f.write(pkginfo['pkgdesc'])