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 | bf23c5517c04d47e2e2f11d10bbde18340125746 (patch) | |
tree | 8488431597612b3d46281e9649afe18955978e0c /bin/bts-update | |
parent | 321a3f158d39c76151f54044e4f270510bd7f77b (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; } } |