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

Andreas Tille tille at debian.org
Wed Sep 11 12:19:38 UTC 2013


The following commit has been merged in the master branch:
commit fd234aa4ad584544ec97b120ffef21f094ed5ec1
Author: Andreas Tille <tille at debian.org>
Date:   Wed Sep 11 14:23:17 2013 +0200

    Mark missing VCS location by '#'

diff --git a/misc/sql/bugs.sh b/misc/sql/bugs.sh
index c87fb08..89571bb 100755
--- a/misc/sql/bugs.sh
+++ b/misc/sql/bugs.sh
@@ -8,7 +8,8 @@ if [ $# -lt 1 ] ; then
 fi
 
 psql udd > $1_buggy_packages.out <<EOT
-      SELECT distinct sources.source, tasks.tasks, CASE WHEN dependency = 'd' AND component = 'main' THEN 'depends' ELSE 'suggests' END AS status, homepage, vcs_browser, maintainer
+      SELECT distinct sources.source, task, CASE WHEN (tasks.dependency = 'd' OR tasks.dependency = 'r') AND component = 'main' THEN 'depends' ELSE 'suggests' END AS status,
+                      homepage, CASE WHEN vcs_browser IS NULL THEN '#' ELSE vcs_browser END AS vcs_browser, maintainer
         FROM (
           SELECT s.source, b.component, s.homepage, s.vcs_browser, s.maintainer, s.version, row_number() OVER (PARTITION BY s.source ORDER BY s.version DESC)
             FROM blends_dependencies b
@@ -19,7 +20,7 @@ psql udd > $1_buggy_packages.out <<EOT
             GROUP BY s.source, b.dependency, b.component, s.homepage, s.vcs_browser, s.maintainer, s.version
         ) sources
         LEFT OUTER JOIN (
-          SELECT source, task AS tasks, dependency FROM (
+          SELECT source, task, dependency FROM (
             SELECT p.source, b.task, bdp.dependency, row_number() OVER (PARTITION BY p.source, b.task ORDER BY bdp.priority)
               FROM packages p
               JOIN releases r ON p.release = r.release
diff --git a/webtools/bugs_udd.py b/webtools/bugs_udd.py
index a060862..538cf48 100755
--- a/webtools/bugs_udd.py
+++ b/webtools/bugs_udd.py
@@ -69,7 +69,8 @@ def main():
 
     # Metadata of packages that might have bugs
     query = """PREPARE query_bug_packages (text) AS
-      SELECT distinct sources.source, task, CASE WHEN (tasks.dependency = 'd' OR tasks.dependency = 'r') AND component = 'main' THEN 'depends' ELSE 'suggests' END AS status, homepage, vcs_browser, maintainer
+      SELECT distinct sources.source, task, CASE WHEN (tasks.dependency = 'd' OR tasks.dependency = 'r') AND component = 'main' THEN 'depends' ELSE 'suggests' END AS status,
+                      homepage, CASE WHEN vcs_browser IS NULL THEN '#' ELSE vcs_browser END AS vcs_browser, maintainer
         FROM (
           SELECT s.source, b.dependency, b.component, s.homepage, s.vcs_browser, s.maintainer, s.version, row_number() OVER (PARTITION BY s.source ORDER BY s.version DESC)
             FROM blends_dependencies b

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list