[aur-dev] [PATCH] git-update: Drop writing git description file

Johannes Löthberg johannes at kyriasis.com
Mon Jun 8 12:57:57 UTC 2015


All PKGBUILDs are stored in a single repository now, so there is no use
for writing out a description file for the repo anymore.

This fixes a bug where pkgdescs containing UTF-8 characters are rejected
due to it trying to write the file out using ASCII.

Signed-off-by: Johannes Löthberg <johannes at kyriasis.com>
---
 git-interface/git-update.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/git-interface/git-update.py b/git-interface/git-update.py
index 92953f6..2407188 100755
--- a/git-interface/git-update.py
+++ b/git-interface/git-update.py
@@ -280,9 +280,3 @@ for pkgname in srcinfo.GetPackageNames():
 save_srcinfo(srcinfo, db, cur, user)
 
 db.close()
-
-pkglist = list(srcinfo.GetPackageNames())
-if len(pkglist) > 0:
-    with open(repo_path + '/description', 'w') as f:
-        pkginfo = srcinfo.GetMergedPackage(pkglist[0])
-        f.write(pkginfo['pkgdesc'])
-- 
2.4.2


More information about the aur-dev mailing list