diff options
Diffstat (limited to 'gentoobrowse/views/package.xml')
-rw-r--r-- | gentoobrowse/views/package.xml | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gentoobrowse/views/package.xml b/gentoobrowse/views/package.xml index d063177..f4f6048 100644 --- a/gentoobrowse/views/package.xml +++ b/gentoobrowse/views/package.xml @@ -33,10 +33,11 @@ </project2:sqlrows> <project2:sqlrows name="versions" datasource="postgres-web"> <sql> - SELECT e.ebuildid, e.version, e.moddate, e.slot, e.license - FROM ebuilds e + SELECT e.ebuildid, e.version, e.moddate, e.slot, e.license, r.name AS reponame + FROM ebuilds e, repos r + WHERE e.repoid = r.repoid <filter name="pkg"> - WHERE e.packageid = <param name="pkgid" /> + AND e.packageid = <param name="pkgid" /> </filter> ORDER BY versioninst desc </sql> @@ -157,12 +158,13 @@ </project2:sqlrows> <project2:sqlrows name="changeLog" datasource="postgres-web"> <sql> - SELECT date, person, email, comment - FROM package_changelogs + SELECT date, person, email, comment, r.name AS reponame + FROM package_changelogs c, repos r + WHERE c.repoid = r.repoid <filter name="pkg"> - WHERE packageid = <param name="pkgid" /> + AND packageid = <param name="pkgid" /> </filter> - ORDER BY date DESC, n DESC + ORDER BY date DESC, n DESC, c.repoid </sql> </project2:sqlrows> </block> |