summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-12-27 12:32:14 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2014-12-27 12:42:12 +0100
commit9ed559eb3377b010df9915ef85dd40d6b5fdf803 (patch)
treebaab7980e137f3a1d726bc6d84268ab00d56faed
parentc3c110c09d453e52b77e8d2af186818ed3310fd6 (diff)
downloadaur-9ed559eb3377b010df9915ef85dd40d6b5fdf803.tar.gz
aur-9ed559eb3377b010df9915ef85dd40d6b5fdf803.tar.xz
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>
-rwxr-xr-xscripts/git-integration/git-update.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/git-integration/git-update.py b/scripts/git-integration/git-update.py
index 74a55b58..94da12e4 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'])