From ccb0c099af6e0227a355f5a4b9025052e07bc8e2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 20 Oct 2005 04:58:38 +0000 Subject: fix a bug in processing of multiple bugs in one line git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@2471 e39458fd-73e7-0310-bf30-c45bca0a0e42 --- bin/bts-update | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/bts-update') diff --git a/bin/bts-update b/bin/bts-update index 483d4e2eae..545c65068d 100755 --- a/bin/bts-update +++ b/bin/bts-update @@ -75,7 +75,11 @@ sub processlist { elsif (/\s+-\s+.*\((.*)\)/) { my @notes=split(/\s*;\s+/, $1); foreach my $note (@notes) { - if (/bug #(\d+)/) { + if ($note =~ /bug #(\d+)/) { + if (! defined $cve) { + print STDERR "no cve for bug at line $.!\n"; + next; + } $ret{$1}{$cve}=1; } } -- cgit v1.2.3