summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRuss Allbery <rra@debian.org>2017-05-29 10:26:29 -0700
committerRuss Allbery <rra@debian.org>2017-05-29 10:26:29 -0700
commitba8772e858d50f3c1fc2608b40f1228fee461c7a (patch)
tree370235d774bcf5d0637fa1584c2de3f15ea28893 /tools
parent401457210b9af6e13507380b3c9f51cf05e5bc4a (diff)
Fix some bugs in tools/policy-bug-report
* Fix tools/policy-bug-report to not fail when bug lists are empty and to ignore closed bugs.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/policy-bug-report2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/policy-bug-report b/tools/policy-bug-report
index a9528a7..27da899 100755
--- a/tools/policy-bug-report
+++ b/tools/policy-bug-report
@@ -44,10 +44,12 @@ sub init_soap {
# cannot handle usertags, only regular search criteria.
sub print_bug_list {
my ($soap, @criteria) = @_;
+ unshift (@criteria, status => 'open');
unshift (@criteria, package => 'debian-policy');
my $bugs = $soap->get_bugs (@criteria)->result;
unless (@$bugs) {
print "No bugs found\n";
+ return;
}
my $info = $soap->get_status (@$bugs)->result;
for my $bug (sort keys %$info) {