diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-12-27 12:32:14 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-12-27 12:42:12 +0100 |
commit | 9ed559eb3377b010df9915ef85dd40d6b5fdf803 (patch) | |
tree | baab7980e137f3a1d726bc6d84268ab00d56faed /scripts | |
parent | c3c110c09d453e52b77e8d2af186818ed3310fd6 (diff) | |
download | aurweb-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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/git-integration/git-update.py | 4 |
1 files changed, 4 insertions, 0 deletions
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']) |