[aur-dev] [PATCH] Exclude hidden packages from mkpkglists.py
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> --- scripts/mkpkglists.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mkpkglists.py b/scripts/mkpkglists.py index 0f2eb84..f2f48da 100755 --- a/scripts/mkpkglists.py +++ b/scripts/mkpkglists.py @@ -28,12 +28,12 @@ pkgbaselist_header = "# AUR package base list, generated on " + datestr with gzip.open(docroot + "packages.gz", "w") as f: f.write(bytes(pkglist_header + "\n", "UTF-8")) - cur.execute("SELECT Name FROM Packages") + cur.execute("SELECT Name FROM Packages WHERE PackagerUID IS NOT NULL") f.writelines([bytes(x[0] + "\n", "UTF-8") for x in cur.fetchall()]) with gzip.open(docroot + "pkgbase.gz", "w") as f: f.write(bytes(pkgbaselist_header + "\n", "UTF-8")) - cur.execute("SELECT Name FROM PackageBases") + cur.execute("SELECT Name FROM PackageBases WHERE PackagerUID IS NOT NULL") f.writelines([bytes(x[0] + "\n", "UTF-8") for x in cur.fetchall()]) db.close() -- 2.4.4
On Sat, 27 Jun 2015 at 16:00:41, Johannes Löthberg wrote:
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> --- scripts/mkpkglists.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) [...]
Applied this with a minor fix (need to join the Packages and PackageBases table in the first query). Thanks!
participants (2)
-
Johannes Löthberg
-
Lukas Fleischer