diff options
author | Joey Hess <joeyh@debian.org> | 2005-10-20 04:58:38 +0000 |
---|---|---|
committer | Joey Hess <joeyh@debian.org> | 2005-10-20 04:58:38 +0000 |
commit | ccb0c099af6e0227a355f5a4b9025052e07bc8e2 (patch) | |
tree | 2b03207a6798cd23de744e386f484b98f7080dad /bin/bts-update | |
parent | 6717fcf778c1b9f423d2a86a1be0938c7ae5c39e (diff) |
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
Diffstat (limited to 'bin/bts-update')
-rwxr-xr-x | bin/bts-update | 6 |
1 files changed, 5 insertions, 1 deletions
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; } } |