[PATCH] dmd.cgi: Add general RC bug fixing to the maintainer TODO list.
If a maintainer doesn't have any RC bugs of their own to fix, then
they might want to contribute to the general release. Nudge them
in the direction of the bug list.
---
web/inc/dmd-data.rb | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/web/inc/dmd-data.rb b/web/inc/dmd-data.rb
index f6c2c2d..d2fbde4 100755
--- a/web/inc/dmd-data.rb
+++ b/web/inc/dmd-data.rb
@@ -245,6 +245,22 @@ and source not in (select source from upload_history where date > (current_date
get_buildd
end
+ def get_rc_bug_count
+ q =<<-EOF
+select count(*) from bugs
+where severity >= 'serious'
+and id in (select id from bugs_rt_affects_testing)
+and id not in (select id from bugs_merged_with where id > merged_with)
+ EOF
+ rows = dbget(q)
+ if rows
+ count = rows[0][0]
+ else
+ count = 0
+ end
+ return count
+ end
+
def get_dmd_todos
@dmd_todos = []
rc_bugs = @all_bugs.select { |b| ['serious', 'grave', 'critical'].include?(b['severity']) }
@@ -269,6 +285,14 @@ and source not in (select source from upload_history where date > (current_date
@dmd_todos.concat(testing_rc_bugs)
@dmd_todos.concat(stable_rc_bugs)
+ if @dmd_todos.empty?
+ count = get_rc_bug_count
+ if count != 0
+ @dmd_todos << { :type => 'RC bugs', :source => '',
+ :description => "Fix one of <a href=\"http://udd.debian.org/bugs.cgi?release=wheezy&merged=ign&rc=1\">the #{count} RC bugs affecting the next release</a>." }
+ end
+ end
+
@buildd.each_pair do |src, archs|
archs.each do |arch|
@dmd_todos << { :type => 'missing build', :source => src,
--
1.7.10
Reply to: