summaryrefslogtreecommitdiff
path: root/gentoobrowse/views/package.xml
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse/views/package.xml')
-rw-r--r--gentoobrowse/views/package.xml174
1 files changed, 0 insertions, 174 deletions
diff --git a/gentoobrowse/views/package.xml b/gentoobrowse/views/package.xml
deleted file mode 100644
index e581430..0000000
--- a/gentoobrowse/views/package.xml
+++ /dev/null
@@ -1,174 +0,0 @@
-<?xml version="1.0"?>
-<block xmlns:xi="http://www.w3.org/2001/XInclude"
- xmlns:project2="http://project2.randomdan.homeip.net">
- <project2:sqlrows name="sitemap-packages" datasource="postgres-web">
- <sql>
- SELECT c.name AS catname, p.name AS pkgname, MAX(e.moddate) AS moddate
- FROM categories c, packages p, ebuilds e
- WHERE p.packageid = e.packageid
- AND c.categoryid = p.categoryid
- GROUP BY c.name, p.name
- </sql>
- </project2:sqlrows>
- <project2:sqlrows name="packages" datasource="postgres-web">
- <sql>
- SELECT p.packageid, p.name AS pkgname, p.description, p.firstseen, c.name AS catname, p.herd, p.summary, p.image
- FROM packages p, categories c
- WHERE p.categoryid = c.categoryid
- <filter name="catAndName">
- AND c.name = <param name="cat" />
- AND p.name = <param name="pkg" />
- </filter>
- </sql>
- </project2:sqlrows>
- <project2:sqlrows name="tracks" datasource="postgres-web">
- <sql>
- SELECT up.packageid, up.trackedsince, up.userid
- FROM user_packages up
- <filter name="isPkgTrackedByUser">
- WHERE up.packageid = <param name="pkgid" />
- AND up.userid = <param name="userid" />
- </filter>
- </sql>
- </project2:sqlrows>
- <project2:sqlrows name="versions" datasource="postgres-web">
- <sql>
- 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">
- AND e.packageid = <param name="pkgid" />
- </filter>
- ORDER BY versioninst desc
- </sql>
- </project2:sqlrows>
- <project2:sqlrows name="packageUrls" datasource="postgres-web">
- <sql>
- SELECT pu.url
- FROM package_urls pu
- <filter name="pkg">
- WHERE pu.packageid = <param name="pkgid" />
- </filter>
- ORDER BY pu.url
- </sql>
- </project2:sqlrows>
- <project2:sqlrows name="versionUses" datasource="postgres-web">
- <sql>
- SELECT u.*
- FROM ebuilds e, ebuild_uses u
- LEFT OUTER JOIN use_groups ug ON LTRIM(u.use, '+') LIKE ug.name || '%'
- WHERE e.ebuildid = u.ebuildid
- AND ug.usegroupid IS NULL
- <filter name="pkg">
- AND e.packageid = <param name="pkgid" />
- </filter>
- ORDER BY version
- </sql>
- </project2:sqlrows>
- <project2:sqlrows name="versionArchs" datasource="postgres-web">
- <sql>
- SELECT a.*
- FROM ebuilds e, ebuild_archs a
- WHERE e.ebuildid = a.ebuildid
- <filter name="pkg">
- AND e.packageid = <param name="pkgid" />
- </filter>
- ORDER BY version
- </sql>
- </project2:sqlrows>
- <project2:sqlrows name="packageBugs" datasource="postgres-web">
- <sql>
- SELECT b.bugid, b.summary
- FROM bugs b, categories c, packages p
- WHERE p.categoryid = c.categoryid
- AND gentoobrowse.bugpackages(b) @> array[c.name || '/' || p.name]
- <filter name="pkg">
- AND p.packageid = <param name="pkgid" />
- </filter>
- ORDER BY b.bugid
- </sql>
- </project2:sqlrows>
- <project2:sqlrows name="packageDeps" datasource="postgres-web">
- <sql>
- SELECT DISTINCT cd.name AS catname, pd.name AS pkgname, pd.description
- FROM ebuilds e, ebuild_deps d, packages pd, categories cd
- WHERE d.ebuildid = e.ebuildid
- AND pd.packageid = d.packageid
- AND pd.categoryid = cd.categoryid
- <filter name="pkg">
- AND e.packageid = <param name="pkgid" />
- </filter>
- ORDER BY cd.name, pd.name
- </sql>
- </project2:sqlrows>
- <project2:sqlrows name="packageRdeps" datasource="postgres-web">
- <sql>
- SELECT DISTINCT cd.name AS catname, pd.name AS pkgname, pd.description
- FROM ebuilds e, ebuild_rdeps d, packages pd, categories cd
- WHERE d.ebuildid = e.ebuildid
- AND pd.packageid = d.packageid
- AND pd.categoryid = cd.categoryid
- <filter name="pkg">
- AND e.packageid = <param name="pkgid" />
- </filter>
- ORDER BY cd.name, pd.name
- </sql>
- </project2:sqlrows>
- <project2:sqlrows name="packageDepees" datasource="postgres-web">
- <sql>
- SELECT DISTINCT cd.name AS catname, pd.name AS pkgname, pd.description
- FROM ebuilds e, (
- SELECT ebuildid
- FROM ebuild_rdeps d
- <filter name="pkg">
- WHERE d.packageid = <param name="pkgid" />
- </filter>
- UNION
- SELECT ebuildid
- FROM ebuild_deps d
- <filter name="pkg">
- WHERE d.packageid = <param name="pkgid" />
- </filter>) d, packages pd, categories cd
- WHERE d.ebuildid = e.ebuildid
- AND pd.packageid = e.packageid
- AND pd.categoryid = cd.categoryid
- ORDER BY cd.name, pd.name
- </sql>
- </project2:sqlrows>
- <project2:sqlrows name="maskStatus" datasource="postgres-web">
- <sql>
- SELECT em.ebuildid, DENSE_RANK() OVER(ORDER BY em.setno) AS setno
- FROM ebuild_masks em, ebuilds e
- WHERE em.ebuildid = e.ebuildid
- <filter name="pkg">
- AND e.packageid = <param name="pkgid" />
- </filter>
- </sql>
- </project2:sqlrows>
- <project2:sqlrows name="maskDetails" datasource="postgres-web">
- <sql>
- SELECT DISTINCT DENSE_RANK() OVER(ORDER BY em.setno), ms.person, ms.message, ms.dateadded
- FROM ebuild_masks em, ebuilds e, masksets ms
- WHERE em.ebuildid = e.ebuildid
- AND ms.setno = em.setno
- <filter name="pkg">
- AND e.packageid = <param name="pkgid" />
- </filter>
- ORDER BY DENSE_RANK() OVER(ORDER BY em.setno)
- </sql>
- </project2:sqlrows>
- <project2:sqlrows name="changeLog" datasource="postgres-web">
- <sql>
- SELECT committime AS date, authorname person, authoremail email, cl.summary AS comment, r.name AS reponame
- FROM changelog cl, categories c, packages p, repos r
- WHERE p.categoryid = c.categoryid
- AND cl.repoid = r.repoid
- AND gentoobrowse.changelogpackages(cl) @> array[c.name || '/' || p.name]
- <filter name="pkg">
- AND packageid = <param name="pkgid" />
- </filter>
- AND cl.authoremail != 'repo-qa-checks@gentoo.org'
- ORDER BY cl.committime DESC, cl.repoid
- </sql>
- </project2:sqlrows>
-</block>