From 9ed559eb3377b010df9915ef85dd40d6b5fdf803 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 27 Dec 2014 12:32:14 +0100 Subject: git-update.py: Update repository description Use the package description of the first package as the Git repository description. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-update.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/git-integration/git-update.py b/scripts/git-integration/git-update.py index 74a55b5..94da12e 100755 --- a/scripts/git-integration/git-update.py +++ b/scripts/git-integration/git-update.py @@ -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']) -- cgit v1.2.3-70-g09d2