]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Skip bugs which are CLOSED in todo list
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 7 Jul 2011 15:03:22 +0000 (16:03 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 12 Jul 2011 16:10:33 +0000 (17:10 +0100)
* docs/todo.pl: Skip closed bugs

docs/todo.pl

index e6da41845bc99a5d10095b802d1b8df5e6dafa05..1183ff50c8a1c8ca10269751938eee420be76cce 100755 (executable)
@@ -47,6 +47,8 @@ my $trackers = BZ::Client::Bug->search($client, {'product' => $product,
 my @trackers;
 
 foreach my $tracker (@{$trackers}) {
+    next if $tracker->{'bug_status'} eq "CLOSED";
+
     my $summary = $tracker->{'short_desc'};
     $summary =~ s/^\s*RFE\s*:\s*//;
     $summary =~ s/^\s*\[\s*RFE\s*\]\s*:?\s*//;
@@ -64,6 +66,8 @@ foreach my $tracker (@trackers) {
                                                     'blocked' => $tracker->{id}});
 
     foreach my $feature (@{$features}) {
+       next if $feature->{'bug_status'} eq "CLOSED";
+
        my $summary = $feature->{'short_desc'};
        $summary =~ s/^\s*RFE\s*:\s*//;
        $summary =~ s/^\s*\[\s*RFE\s*\]\s*:?\s*//;