[PATCH] Skip bugs which are CLOSED in todo list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

* docs/todo.pl: Skip closed bugs
---
 docs/todo.pl |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/docs/todo.pl b/docs/todo.pl
index e6da418..1183ff5 100755
--- a/docs/todo.pl
+++ b/docs/todo.pl
@@ -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*//;
-- 
1.7.6

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]