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

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Sat Jan 4 18:51:01 2003


User:      kwalsh
Date:      2003-01-04 23:50:43 GMT
Modified:  lib/Vend Config.pm
Log:
	* DirConfig now honours the current ParseVariables setting.

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


rev 2.92, prev_rev 2.91
Index: Config.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Config.pm,v
retrieving revision 2.91
retrieving revision 2.92
diff -u -r2.91 -r2.92
--- Config.pm	3 Jan 2003 22:55:54 -0000	2.91
+++ Config.pm	4 Jan 2003 23:50:43 -0000	2.92
@@ -1,6 +1,6 @@
 # Vend::Config - Configure Interchange
 #
-# $Id: Config.pm,v 2.91 2003/01/03 22:55:54 racke Exp $
+# $Id: Config.pm,v 2.92 2003/01/04 23:50:43 kwalsh Exp $
 #
 # Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
 # Copyright (C) 2003 ICDEVGROUP <interchange@icdevgroup.org>
@@ -46,7 +46,7 @@
 use Vend::Util;
 use Vend::Data;
 
-$VERSION = substr(q$Revision: 2.91 $, 10);
+$VERSION = substr(q$Revision: 2.92 $, 10);
 
 my %CDname;
 
@@ -3238,6 +3238,7 @@
 			next unless -f "$dir/$_";
 #::logDebug("reading key=$_ from $dir/$_");
 			$ref->{$_} = readfile("$dir/$_", $Global::NoAbsolute, 0);
+			$ref->{$_} = substitute_variable($ref->{$_}) if $C->{ParseVariables};
 			$sref->{$_} = "$dir/$_";
 		}
 	}