From 13af5288fe8cc2e0586e806d19443b4766d7f4d5 Mon Sep 17 00:00:00 2001 From: randomdan Date: Tue, 26 Jul 2011 18:09:18 +0000 Subject: Scripts for licenses and use flags --- gentoobrowse/console/packagelicenses.xml | 44 +++++++++++++++++++++++++++ gentoobrowse/console/use.global.xml | 26 ++++++++++++++++ gentoobrowse/console/use.local.xml | 51 ++++++++++++++++++++++++++++++++ 3 files changed, 121 insertions(+) create mode 100644 gentoobrowse/console/packagelicenses.xml create mode 100644 gentoobrowse/console/use.global.xml create mode 100644 gentoobrowse/console/use.local.xml diff --git a/gentoobrowse/console/packagelicenses.xml b/gentoobrowse/console/packagelicenses.xml new file mode 100644 index 0000000..236a031 --- /dev/null +++ b/gentoobrowse/console/packagelicenses.xml @@ -0,0 +1,44 @@ + + + + + SELECT f.filename, ft.searchroot || f.filename AS path + FROM files f, filetypes ft + WHERE (f.cachedat IS NULL OR f.cachedat != f.moddate) + AND f.filetypeid = ft.filetypeid + AND filename NOT LIKE '%.pdf' + AND ft.filetypeid = 7 + + + + + + text + + + + + + + + + + + + + + + name + legalbumph + + + + + UPDATE files SET + cachedat = moddate + WHERE filetypeid = 7 + + + diff --git a/gentoobrowse/console/use.global.xml b/gentoobrowse/console/use.global.xml new file mode 100644 index 0000000..9fafbfe --- /dev/null +++ b/gentoobrowse/console/use.global.xml @@ -0,0 +1,26 @@ + + + + + text + + + + + ([^ ]+) - (.+) + + use + description + + + + + + + + use + description + + + diff --git a/gentoobrowse/console/use.local.xml b/gentoobrowse/console/use.local.xml new file mode 100644 index 0000000..034c4c7 --- /dev/null +++ b/gentoobrowse/console/use.local.xml @@ -0,0 +1,51 @@ + + + + + text + + + + + ([^/]+)/([^:]+):([^ ]+) - (.+) + + category + package + use + description + + + + + + + + + + + + SELECT p.packageid, c.name AS category, p.name AS package + FROM packages p, categories c + WHERE p.categoryid = c.categoryid + + + + + + + + + + + + + + + + packageid + use + description + + + -- cgit v1.2.3