[interchange-cvs] interchange - heins modified lib/Vend/Config.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Mon Dec 3 10:14:16 EST 2007
User: heins
Date: 2007-12-03 15:14:16 GMT
Modified: lib/Vend Config.pm
Log:
* Condition data by removing trailing commas that might be present.
Revision Changes Path
2.229 +4 -2 interchange/lib/Vend/Config.pm
rev 2.229, prev_rev 2.228
Index: Config.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Config.pm,v
retrieving revision 2.228
retrieving revision 2.229
diff -u -r2.228 -r2.229
--- Config.pm 3 Dec 2007 14:34:25 -0000 2.228
+++ Config.pm 3 Dec 2007 15:14:16 -0000 2.229
@@ -1,6 +1,6 @@
# Vend::Config - Configure Interchange
#
-# $Id: Config.pm,v 2.228 2007/12/03 14:34:25 mheins Exp $
+# $Id: Config.pm,v 2.229 2007/12/03 15:14:16 mheins Exp $
#
# Copyright (C) 2002-2007 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.228 $, 10);
+$VERSION = substr(q$Revision: 2.229 $, 10);
my %CDname;
my %CPname;
@@ -4418,6 +4418,8 @@
if(defined $Explode_ref{$p}) {
my($ak, $v);
+ $val =~ s/,+$//;
+ $val =~ s/^,+//;
my(@v) = Text::ParseWords::shellwords($val);
@v = grep length $_, @v;
$d->{$p} = {} unless defined $d->{$p};
More information about the interchange-cvs
mailing list