From c1ac7dced0626228327f60fac530522d32f992e6 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 27 Jun 2015 16:00:41 +0200 Subject: Exclude hidden packages from mkpkglists.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported-by: Jakub Klinkovský Signed-off-by: Johannes Löthberg Signed-off-by: Lukas Fleischer --- scripts/mkpkglists.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/mkpkglists.py b/scripts/mkpkglists.py index 0f2eb842..a6f8a197 100755 --- a/scripts/mkpkglists.py +++ b/scripts/mkpkglists.py @@ -28,12 +28,14 @@ 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 Packages.Name FROM Packages INNER JOIN PackageBases " + + "ON PackageBases.ID = Packages.PackageBaseID " + + "WHERE PackageBases.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() -- cgit v1.2.3-24-g4f1b