[Collab-qa-commits] r1875 - udd/sql

Andreas Tille tille at alioth.debian.org
Fri Dec 31 16:09:28 UTC 2010


Author: tille
Date: 2010-12-31 16:09:25 +0000 (Fri, 31 Dec 2010)
New Revision: 1875

Modified:
   udd/sql/blends-query-packages.sql
Log:
Add dehs and popcon to blends query


Modified: udd/sql/blends-query-packages.sql
===================================================================
--- udd/sql/blends-query-packages.sql	2010-12-31 07:22:49 UTC (rev 1874)
+++ udd/sql/blends-query-packages.sql	2010-12-31 16:09:25 UTC (rev 1875)
@@ -11,6 +11,8 @@
          src.vcs_type, src.vcs_url, src.vcs_browser,
          p.enhances,
          rva.releases, versions, rva.architectures,
+	 unstable_upstream, unstable_parsed_version, unstable_status, experimental_parsed_version, experimental_status,
+	 pop.vote, pop.recent,
          p.description  AS description_en, p.long_description  AS long_description_en,
          cs.description AS description_cs, cs.long_description AS long_description_cs,
          da.description AS description_da, da.long_description AS long_description_da,
@@ -95,6 +97,13 @@
 	    ) tmp GROUP BY package
          ) rva
          ON p.package = rva.package
+    LEFT OUTER JOIN (
+      SELECT DISTINCT
+        source, unstable_upstream, unstable_parsed_version, unstable_status, experimental_parsed_version, experimental_status
+        FROM dehs
+        WHERE unstable_status = 'outdated'
+    ) d ON p.source = d.source 
+    LEFT OUTER JOIN popcon pop ON p.package = pop.package
     WHERE p.package = ANY ($1)
     ORDER BY p.package
  $$ LANGUAGE 'SQL';




More information about the Collab-qa-commits mailing list