[Blends-commit] [SCM] website branch, master, updated. 78d4036fcbae231b6fac9717477e0ea3ca033fcd

Andreas Tille tille at debian.org
Fri Dec 13 12:34:08 UTC 2013


The following commit has been merged in the master branch:
commit 6d99e855e0db32ca47c4d68a27d46a0a05d51b62
Author: Andreas Tille <tille at debian.org>
Date:   Fri Dec 13 13:32:59 2013 +0100

    Get rid of duplicates

diff --git a/misc/sql/0-uncategorised.sh b/misc/sql/0-uncategorised.sh
index 5ac16c8..5244363 100755
--- a/misc/sql/0-uncategorised.sh
+++ b/misc/sql/0-uncategorised.sh
@@ -39,7 +39,8 @@ SELECT t.source, s.bin FROM (
     GROUP BY source
     HAVING MAX(is_in_task) = 0
   ) t
-  LEFT JOIN (SELECT DISTINCT source, bin FROM sources s WHERE release = 'sid') s ON t.source = s.source
+  LEFT JOIN (SELECT source, bin, row_number() OVER (PARTITION BY source ORDER BY version DESC) FROM sources s WHERE release = 'sid') s ON t.source = s.source
+  WHERE s.row_number = 1
   ORDER BY source
   ;
 EOT

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list