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 | 6343db1c1afa91b14a778709083eb7d213f74554 (patch) | |
tree | e1edd6aa7472767b25190099a79ac9916f06226d /bin/bts-update | |
parent | 1d6936b89a245191634c931d9abbf150d8db78f1 (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; } } |