[aur-dev] [PATCH v2 09/10] git-update.py: Update repository description

Lukas Fleischer archlinux at cryptocrack.de
Sat Dec 27 11:51:45 UTC 2014


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

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 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'])
-- 
2.2.1


More information about the aur-dev mailing list