[csw-devel] SF.net SVN: gar:[16088] csw/mgar/pkg/ca_certificates/trunk/files/ certdata2pem.pl

chninkel at users.sourceforge.net chninkel at users.sourceforge.net
Sun Nov 6 00:13:13 CET 2011


Revision: 16088
          http://gar.svn.sourceforge.net/gar/?rev=16088&view=rev
Author:   chninkel
Date:     2011-11-05 23:13:13 +0000 (Sat, 05 Nov 2011)
Log Message:
-----------
ca_certificates: avoid some errors at build time

Modified Paths:
--------------
    csw/mgar/pkg/ca_certificates/trunk/files/certdata2pem.pl

Modified: csw/mgar/pkg/ca_certificates/trunk/files/certdata2pem.pl
===================================================================
--- csw/mgar/pkg/ca_certificates/trunk/files/certdata2pem.pl	2011-11-05 23:10:58 UTC (rev 16087)
+++ csw/mgar/pkg/ca_certificates/trunk/files/certdata2pem.pl	2011-11-05 23:13:13 UTC (rev 16088)
@@ -63,14 +63,16 @@
 		$val =~ s/[\/\s,]/_/g;
 		$val =~ s/[()]//g;
 		$val = strip_diacritics ($val);
-		next if ($val =~ /Explicitly_Distrust/ or $val =~ /Bogus/);
-		$fname = $val . ".pem";
+		if ($val =~ /Explicitly_Distrust/ or $val =~ /Bogus/) {
+			undef $fname;
+		} else {
+			$fname = $val . ".pem";
+		}
 		next;
 	}
 
 	if ($line =~ /CKA_VALUE MULTILINE_OCTAL/) {
 		if (not $fname) {
-			print "ERROR: unexpected CKA_VALUE MULTILINE_OCTAL\n";
 			next;
 		}
 		my @cert_data;

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list