[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 78d4036fcbae231b6fac9717477e0ea3ca033fcd
Author: Andreas Tille <tille at debian.org>
Date:   Fri Dec 13 13:38:44 2013 +0100

    Also add latest uploader

diff --git a/misc/sql/0-uncategorised.sh b/misc/sql/0-uncategorised.sh
index 5244363..0e077b4 100755
--- a/misc/sql/0-uncategorised.sh
+++ b/misc/sql/0-uncategorised.sh
@@ -26,7 +26,7 @@ if psql -l 2>/dev/null | grep -qw udd ; then
 fi
 
 psql $SERVICE >$1.out <<EOT
-SELECT t.source, s.bin FROM (
+SELECT t.source, s.bin, u.changed_by FROM (
   SELECT source FROM (
     SELECT DISTINCT source, CASE WHEN b.package IS NULL THEN 0 ELSE 1 END AS is_in_task FROM packages p
       LEFT JOIN blends_dependencies b ON p.package = b.package
@@ -39,8 +39,9 @@ SELECT t.source, s.bin FROM (
     GROUP BY source
     HAVING MAX(is_in_task) = 0
   ) t
-  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
+  LEFT JOIN (SELECT source, bin, row_number() OVER (PARTITION BY source ORDER BY version DESC) AS sver FROM sources WHERE release = 'sid') s ON t.source = s.source
+  LEFT JOIN (SELECT source, changed_by, row_number() OVER (PARTITION BY source ORDER BY date DESC) AS udate FROM upload_history) u ON u.source = s.source
+  WHERE s.sver = 1 and u.udate = 1
   ORDER BY source
   ;
 EOT

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list