summaryrefslogtreecommitdiff
path: root/gentoobrowse/views/newebuilds.xml
blob: d27ee707b33a723cee9c9384aa35ac1d57811ff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0"?>
<block xmlns:xi="http://www.w3.org/2001/XInclude">
	<xi:include href="../datasources/postgres.xml" />
	<sqlview name="newebuilds" recordname="ebuild" datasource="postgres">
		<sql>
			SELECT filename, EXTRACT('day' FROM NOW() - f.firstseen) AS age, description,
				moddate, p.name AS pkgname, c.name AS catname
			FROM ebuilds e, files f, packages p, categories c
			WHERE e.ebuildid = f.fileid
			AND e.packageid = p.packageid
			AND p.categoryid = c.categoryid
			AND f.firstseen &gt; DATE_TRUNC('day', NOW()) - INTERVAL '3 days'
			ORDER BY c.name, p.name, e.versioninst
		</sql>
	</sqlview>
</block>