[Secure-testing-commits] r6342 - bin

stef-guest at alioth.debian.org stef-guest at alioth.debian.org
Thu Aug 16 20:58:18 UTC 2007


Author: stef-guest
Date: 2007-08-16 20:58:17 +0000 (Thu, 16 Aug 2007)
New Revision: 6342

Modified:
   bin/updatelist
Log:
fix bug that empty list of cross-references was not deleted

Modified: bin/updatelist
===================================================================
--- bin/updatelist	2007-08-16 20:53:06 UTC (rev 6341)
+++ bin/updatelist	2007-08-16 20:58:17 UTC (rev 6342)
@@ -72,7 +72,7 @@
 	if ($cves{$cve}{rejected}) {
 		push @out, "\tREJECTED\n";
 	}
-	if ($cves{$cve}{xref}) {
+	if (scalar @{$cves{$cve}{xref}} > 0) {
 		push @out, "\t{".join(" ", @{$cves{$cve}{xref}})."}\n";
 	}
 	if ($cves{$cve}{notes}) {
@@ -145,7 +145,7 @@
 	if ($cves{$cve}{rejected}) {
 		print "\tREJECTED\n";
 	}
-	if ($cves{$cve}{xref}) {
+	if (scalar @{$cves{$cve}{xref}} > 0) {
 		print "\t{".join(" ", @{$cves{$cve}{xref}})."}\n";
 	}
 	if (!$cves{$cve}{reserved} || $cves{$cve}{rejected} ) {




More information about the Secure-testing-commits mailing list