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

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Tue Aug 16 16:38:50 EDT 2005


User:      jon
Date:      2005-08-16 20:38:49 GMT
Modified:  lib/Vend Config.pm
Log:
Ignore leading whitespace in boolean directives, by excluding '' from the
list of hash keys.

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


rev 2.181, prev_rev 2.180
Index: Config.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Config.pm,v
retrieving revision 2.180
retrieving revision 2.181
diff -u -u -r2.180 -r2.181
--- Config.pm	12 Aug 2005 08:51:52 -0000	2.180
+++ Config.pm	16 Aug 2005 20:38:49 -0000	2.181
@@ -1,6 +1,6 @@
 # Vend::Config - Configure Interchange
 #
-# $Id: Config.pm,v 2.180 2005/08/12 08:51:52 docelic Exp $
+# $Id: Config.pm,v 2.181 2005/08/16 20:38:49 jon Exp $
 #
 # Copyright (C) 2002-2003 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
@@ -52,7 +52,7 @@
 use Vend::Data;
 use Vend::Cron;
 
-$VERSION = substr(q$Revision: 2.180 $, 10);
+$VERSION = substr(q$Revision: 2.181 $, 10);
 
 my %CDname;
 my %CPname;
@@ -2860,7 +2860,7 @@
 # Sets a boolean array for any type of item
 sub parse_boolean {
 	my($item,$settings) = @_;
-	my(@setting) = split /[\s,]+/, $settings;
+	my(@setting) = grep /\S/, split /[\s,]+/, $settings;
 	my $c;
 
 	if(defined $C) {








More information about the interchange-cvs mailing list