[Secure-testing-commits] r1768 - bin

Joey Hess
Thu, 01 Sep 2005 19:38:12 -0000

Author: joeyh
Date: 2005-09-01 19:37:48 +0000 (Thu, 01 Sep 2005)
New Revision: 1768

Modified:
   bin/checklist
Log:
fix a warning on undefined item


Modified: bin/checklist
==================================================================---
bin/checklist	2005-09-01 19:34:16 UTC (rev 1767)
+++ bin/checklist	2005-09-01 19:37:48 UTC (rev 1768)
@@ -79,7 +79,8 @@
 	if ($html) {
 		$condition=~s{bug #(\d+)}{<a
href="http://bugs.debian.org/$1">bug #$1}g;
$condition=~s{unfixed}{unfixed}g;
-		$item=~s#((?:CAN|CVE)-\d+-\d+)#<a
href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=$1">$1#g;
+		$item=~s#((?:CAN|CVE)-\d+-\d+)#<a
href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=$1">$1#g
+			if defined $item;
 	}

 	push @{$data{$package}{$condition}}, {item => $item, urgency =>
$urgency};