status-report-scripts parseBZbugList,1.4,1.5

Christian Iseli (c4chris) fedora-extras-commits at redhat.com
Wed Apr 19 09:52:37 UTC 2006


Author: c4chris

Update of /cvs/fedora/status-report-scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1413

Modified Files:
	parseBZbugList 
Log Message:
Print number of open tickets.


Index: parseBZbugList
===================================================================
RCS file: /cvs/fedora/status-report-scripts/parseBZbugList,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- parseBZbugList	19 Apr 2006 09:51:36 -0000	1.4
+++ parseBZbugList	19 Apr 2006 09:52:35 -0000	1.5
@@ -332,13 +332,18 @@
 sub checkNotClosed {
   my ($BZ, $cur) = @_;
   my @BL;
+  my $cnt = 0;
   foreach my $b (sort(keys %$BZ)) {
     my $a = $BZ->{$b};
-    next unless $$a[5] eq "\"CLOSED\"";
-    push @BL, $b;
+    if ($$a[5] eq "\"CLOSED\"") {
+      push @BL, $b;
+      next;
+    }
+    $cnt += 1;
   }
+  print "\nWe have $cnt open tickets in $cur\n";
   return if $#BL < 0;
-  my $cnt = $#BL + 1;
+  $cnt = $#BL + 1;
   print "\nWe have $cnt closed tickets still blocking $cur\n";
   print "https://bugzilla.redhat.com/bugzilla/buglist.cgi?bug_id=",
     join(",", @BL), "\n";




More information about the scm-commits mailing list