[aur-dev] [PATCH] git-update: Drop writing git description file
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@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
On Mon, 08 Jun 2015 at 14:57:57, Johannes Löthberg wrote:
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@kyriasis.com> --- git-interface/git-update.py | 6 ------ 1 file changed, 6 deletions(-) [...]
Applied, thanks!
participants (2)
-
Johannes Löthberg
-
Lukas Fleischer