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.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/gentoobrowse/views/package.xml b/gentoobrowse/views/package.xml
index a4ba735..4cb0a0d 100644
--- a/gentoobrowse/views/package.xml
+++ b/gentoobrowse/views/package.xml
@@ -99,5 +99,29 @@
<param bind="0" value="^packageid" />
</parameters>
</project2:sqlview>
+ <project2:sqlview name="maskstatus" recordname="mask" datasource="postgres">
+ <sql>
+ SELECT em.ebuildid, RANK() OVER(ORDER BY em.setno) AS setno
+ FROM ebuild_masks em, ebuilds e
+ WHERE em.ebuildid = e.ebuildid
+ AND e.packageid = ?
+ </sql>
+ <parameters>
+ <param bind="0" value="^packageid" />
+ </parameters>
+ </project2:sqlview>
+ <project2:sqlview name="maskdetails" recordname="mask" datasource="postgres">
+ <sql>
+ SELECT DISTINCT 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
+ AND e.packageid = ?
+ ORDER BY RANK() OVER(ORDER BY em.setno)
+ </sql>
+ <parameters>
+ <param bind="0" value="^packageid" />
+ </parameters>
+ </project2:sqlview>
</project2:sqlview>
</block>