[Blends-commit] [SCM] website branch, master, updated. 0ead462624d4a9a01a307fe56b769630aeaf818f

Andreas Tille tille at debian.org
Mon Jul 11 21:02:34 UTC 2016


The following commit has been merged in the master branch:
commit 725fb9416fcb03dff74123095d446530ff5b95d2
Author: Andreas Tille <tille at debian.org>
Date:   Mon Jul 11 23:00:15 2016 +0200

    Avoid duplicates

diff --git a/misc/sql/0-missing-autopkgtest.sh b/misc/sql/0-missing-autopkgtest.sh
index 10620de..dffbdc4 100755
--- a/misc/sql/0-missing-autopkgtest.sh
+++ b/misc/sql/0-missing-autopkgtest.sh
@@ -33,7 +33,7 @@ if ! psql $PORT $SERVICE -c "" 2>/dev/null ; then
 fi
 
 psql $SERVICE <<EOT
-SELECT source, vote, testsuite, tags FROM (
+SELECT source, vote, MAX(testsuite), tags FROM (
   SELECT source, vote, testsuite, tags, row_number() OVER (PARTITION BY source ORDER BY vote DESC) FROM (
     SELECT DISTINCT p.source, p.package, CASE WHEN pop.vote IS NULL THEN -1 ELSE pop.vote END AS vote, s.testsuite, d.tags FROM packages p
       LEFT OUTER JOIN popcon  pop ON p.package = pop.package
@@ -45,6 +45,7 @@ SELECT source, vote, testsuite, tags FROM (
       AND p.release = 'sid'
   ) tmp1
 ) tmp2
+GROUP BY source, vote, tags
 ORDER BY vote DESC, source
   ;
 EOT

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list