[Collab-qa-commits] r1648 - udd/web/cgi-bin

David Paleino dapal at alioth.debian.org
Mon Dec 21 20:48:51 UTC 2009


Author: dapal
Date: 2009-12-21 20:48:51 +0000 (Mon, 21 Dec 2009)
New Revision: 1648

Modified:
   udd/web/cgi-bin/rcbugs.cgi
Log:
Also exclude bugs tagged pending



Modified: udd/web/cgi-bin/rcbugs.cgi
===================================================================
--- udd/web/cgi-bin/rcbugs.cgi	2009-12-21 18:04:28 UTC (rev 1647)
+++ udd/web/cgi-bin/rcbugs.cgi	2009-12-21 20:48:51 UTC (rev 1648)
@@ -29,10 +29,10 @@
 
 dbh = DBI::connect('DBI:Pg:dbname=udd;port=5441;host=localhost', 'guest')
 
-sth = dbh.prepare("select id, bugs.package, bugs.source, insts, title from bugs, popcon_src where bugs.source = popcon_src.source and id in (select id from bugs_rt_affects_testing_and_unstable) and id in (select id from bugs_tags where tag='patch') and severity >= 'serious' order by id")
+sth = dbh.prepare("select id, bugs.package, bugs.source, insts, title from bugs, popcon_src where bugs.source = popcon_src.source and id in (select id from bugs_rt_affects_testing_and_unstable) and id in (select id from bugs_tags where tag='patch') and id not in (select id from bugs_tags where tag='pending') and severity >= 'serious' order by id")
 sth.execute ; rows = sth.fetch_all
 
-puts "<h2>RC bugs tagged patch</h2>"
+puts "<h2>RC bugs tagged patch (and not pending)</h2>"
 puts "<table>"
 puts "<tr><th>bug</th><th>package</th><th>source</th><th>popcon</th><th>title</th></tr>"
 rows.each do |r|
@@ -45,12 +45,12 @@
 puts "</table>"
 sth.finish
 
-puts "<h2>RC bugs on packages with a newer version in Ubuntu, not tagged patch (possible patches)</h2>"
+puts "<h2>RC bugs on packages with a newer version in Ubuntu (possible patches), not tagged patch nor pending</h2>"
 puts "<table>"
 puts "<tr><th>bug</th><th>package</th><th>source</th><th>versions (D/U)</th><th>popcon</th><th>title</th></tr>"
 
 sth = dbh.prepare("WITH ubudeb AS (select distinct on (d.source, u.source) d.source as dsource, u.source as usource, d.version as dversion, u.version as uversion from sources_uniq d, ubuntu_sources u where d.release = 'sid' and d.distribution = 'debian' and u.release = 'lucid' and u.distribution = 'ubuntu' and u.source = d.source and u.version > d.version order by d.source asc, u.source asc, d.version desc)
-select id, bugs.package, bugs.source, title, dversion, uversion, insts from bugs, ubudeb, popcon_src where popcon_src.source = bugs.source and id in (select id from bugs_rt_affects_testing_and_unstable) and id not in (select id from bugs_tags where tag='patch') and severity >= 'serious' and ubudeb.dsource = bugs.source order by id")
+select id, bugs.package, bugs.source, title, dversion, uversion, insts from bugs, ubudeb, popcon_src where popcon_src.source = bugs.source and id in (select id from bugs_rt_affects_testing_and_unstable) and id not in (select id from bugs_tags where tag='patch') and id not in (select id from bugs_tags where tag='pending') and severity >= 'serious' and ubudeb.dsource = bugs.source order by id")
 sth.execute ; rows = sth.fetch_all
 rows.each do |r|
    puts "<tr><td><a href=\"http://bugs.debian.org/#{r['id']}\">#{r['id']}</a></td>"




More information about the Collab-qa-commits mailing list