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

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Thu Jan 2 16:36:00 2003


User:      racke
Date:      2003-01-02 21:35:07 GMT
Modified:  lib/Vend Config.pm
Log:
warnings didn't make it through, so I changed that accordingly to
the 4.8.x code
I suppose that if $val has a syntax error the inner eval dies
and the outer $@ will be set
on a warning the inner eval will work, but the warning is put into
$@ and $sub will be empty, but the outer $@ is clean

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


rev 2.89, prev_rev 2.88
Index: Config.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Config.pm,v
retrieving revision 2.88
retrieving revision 2.89
diff -u -r2.88 -r2.89
--- Config.pm	1 Jan 2003 14:13:05 -0000	2.88
+++ Config.pm	2 Jan 2003 21:35:07 -0000	2.89
@@ -1,6 +1,6 @@
 # Vend::Config - Configure Interchange
 #
-# $Id: Config.pm,v 2.88 2003/01/01 14:13:05 racke Exp $
+# $Id: Config.pm,v 2.89 2003/01/02 21:35:07 racke 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.88 $, 10);
+$VERSION = substr(q$Revision: 2.89 $, 10);
 
 my %CDname;
 
@@ -3648,6 +3648,7 @@
 			eval {
 				package Vend::Interpolate;
 				$sub = eval $val;
+				warn $@ if $@;
 			};
 		}
 		if($@) {