[interchange-cvs] interchange - racke modified lib/Vend/Config.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Sun Nov 19 15:59:56 EST 2006


User:      racke
Date:      2006-11-19 20:59:56 GMT
Modified:  lib/Vend Config.pm
Log:
strip trailing whitespace from profile name in order to avoid errors
which are hard to track down

Revision  Changes    Path
2.209     +3 -2      interchange/lib/Vend/Config.pm


rev 2.209, prev_rev 2.208
Index: Config.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Config.pm,v
retrieving revision 2.208
retrieving revision 2.209
diff -u -r2.208 -r2.209
--- Config.pm	19 Nov 2006 20:51:51 -0000	2.208
+++ Config.pm	19 Nov 2006 20:59:56 -0000	2.209
@@ -1,6 +1,6 @@
 # Vend::Config - Configure Interchange
 #
-# $Id: Config.pm,v 2.208 2006/11/19 20:51:51 racke Exp $
+# $Id: Config.pm,v 2.209 2006/11/19 20:59:56 racke Exp $
 #
 # Copyright (C) 2002-2006 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
@@ -54,7 +54,7 @@
 use Vend::Data;
 use Vend::Cron;
 
-$VERSION = substr(q$Revision: 2.208 $, 10);
+$VERSION = substr(q$Revision: 2.209 $, 10);
 
 my %CDname;
 my %CPname;
@@ -4551,6 +4551,7 @@
 	for($i = 0; $i < @$c; $i++) {
 		if($c->[$i] =~ s/(^|\n)__NAME__\s+([^\n\r]+)\r?\n/$1/) {
 			my $name = $2;
+			$name =~ s/\s+$//;
 			$ref->{$name} = $i;
 		}
 	}








More information about the interchange-cvs mailing list