diff options
Diffstat (limited to 'gentoobrowse/views/package.xml')
-rw-r--r-- | gentoobrowse/views/package.xml | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/gentoobrowse/views/package.xml b/gentoobrowse/views/package.xml index a7fc724..68ab0f6 100644 --- a/gentoobrowse/views/package.xml +++ b/gentoobrowse/views/package.xml @@ -87,7 +87,7 @@ </project2:sqlview> <project2:sqlview name="deps" recordname="package" datasource="postgres"> <sql> - SELECT distinct cd.name AS catname, pd.name AS pkgname, pd.description + SELECT DISTINCT cd.name AS catname, pd.name AS pkgname, pd.description FROM ebuilds e, ebuild_deps d, packages pd, categories cd WHERE e.packageid = ? AND d.ebuildid = e.ebuildid @@ -99,6 +99,41 @@ <param bind="0" value="^packageid" /> </parameters> </project2:sqlview> + <project2:sqlview name="rdeps" recordname="package" datasource="postgres"> + <sql> + SELECT DISTINCT cd.name AS catname, pd.name AS pkgname, pd.description + FROM ebuilds e, ebuild_rdeps d, packages pd, categories cd + WHERE e.packageid = ? + AND d.ebuildid = e.ebuildid + AND pd.packageid = d.packageid + AND pd.categoryid = cd.categoryid + ORDER BY cd.name, pd.name + </sql> + <parameters> + <param bind="0" value="^packageid" /> + </parameters> + </project2:sqlview> + <project2:sqlview name="depees" recordname="package" datasource="postgres"> + <sql> + SELECT DISTINCT cd.name AS catname, pd.name AS pkgname, pd.description + FROM ebuilds e, ( + SELECT ebuildid + FROM ebuild_rdeps d + WHERE d.packageid = ? + UNION + SELECT ebuildid + FROM ebuild_deps d + WHERE d.packageid = ?) 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> + <parameters> + <param bind="0" value="^packageid" /> + <param bind="1" value="^packageid" /> + </parameters> + </project2:sqlview> <project2:sqlview name="maskstatus" recordname="mask" datasource="postgres"> <sql> SELECT em.ebuildid, DENSE_RANK() OVER(ORDER BY em.setno) AS setno |