From f6a3fa1944b0ecc3dbdbbb48747e4c3765c9a775 Mon Sep 17 00:00:00 2001 From: randomdan Date: Sat, 28 Aug 2010 00:07:06 +0000 Subject: Import and display the ebuild slot and license --- gentoobrowse/browse.xslt | 5 ++++- gentoobrowse/console/packageimport.xml | 6 ++++-- gentoobrowse/views/package.xml | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gentoobrowse/browse.xslt b/gentoobrowse/browse.xslt index 8d3643d..6f1bacb 100644 --- a/gentoobrowse/browse.xslt +++ b/gentoobrowse/browse.xslt @@ -42,7 +42,10 @@
  • - v () + v + (Modified : + Slot : + License : )
    • diff --git a/gentoobrowse/console/packageimport.xml b/gentoobrowse/console/packageimport.xml index 12bca02..f417f9a 100644 --- a/gentoobrowse/console/packageimport.xml +++ b/gentoobrowse/console/packageimport.xml @@ -32,13 +32,15 @@ - SELECT packageid, version, fileid AS ebuildid, ebuildversion_constructor(version) AS versioninst + SELECT packageid, version, f.fileid AS ebuildid, ebuildversion_constructor(version) AS versioninst, fcs.content AS slot, fcl.content AS license FROM ( SELECT f.fileid, (REGEXP_MATCHES(filename, '^[^/]+'))[1] AS cat, (REGEXP_MATCHES(filename, '/(.+)-[0-9]'))[1] AS name, (REGEXP_MATCHES(filename, '/.+-([0-9].*)$'))[1] AS version FROM files f - WHERE filetypeid = 1) f, categories c, packages p + WHERE filetypeid = 1) f LEFT OUTER JOIN filecache fcs + ON fcs.fileid = f.fileid AND fcs.line = 3 LEFT OUTER JOIN filecache fcl + ON fcl.fileid = f.fileid AND fcl.line = 7, categories c, packages p WHERE f.cat = c.name AND c.categoryid = p.categoryid AND p.name = f.name diff --git a/gentoobrowse/views/package.xml b/gentoobrowse/views/package.xml index 1ed38b3..a4ba735 100644 --- a/gentoobrowse/views/package.xml +++ b/gentoobrowse/views/package.xml @@ -28,7 +28,7 @@ - SELECT e.ebuildid, e.version, f.moddate + SELECT e.ebuildid, e.version, f.moddate, e.slot, e.license FROM ebuilds e, files f WHERE e.packageid = ? AND e.ebuildid = f.fileid -- cgit v1.2.3