summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-06-27 16:00:41 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-27 16:43:59 +0200
commitc1ac7dced0626228327f60fac530522d32f992e6 (patch)
tree09d6f15617f35d62043918614dd858eea43ae193
parentd0be66015ab86ecdc34025bb870e8e4d5897ceec (diff)
Exclude hidden packages from mkpkglists.py
Reported-by: Jakub Klinkovský <j.l.k@gmx.com> Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rwxr-xr-xscripts/mkpkglists.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/mkpkglists.py b/scripts/mkpkglists.py
index 0f2eb84..a6f8a19 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()