Re: Understanding contents.py
Hi,
On 07/08/2014 18:48, Abhishek Bhattacharjee wrote:
> I want to know how contents.py takes only the newest binaries for
> writing the contents.
> https://github.com/abhi11/dak/blob/master/daklib/contents.py#L50
> Here's the link to that part.
> In sql_create_temp, what are we doing exactly ?
> All I see is a clause "desc version"
The DISTINCT clause[1] is the relevant bit. It takes only one entry for
each "package", the ORDER BY part decides which entry that is.
Ansgar
[1]
<http://www.postgresql.org/docs/9.3/static/sql-select.html#SQL-DISTINCT>
Reply to: