[interchange-cvs] interchange - heins modified lib/Vend/Config.pm
interchange-core@interchange.redhat.com
interchange-core@interchange.redhat.com
Tue Jan 29 19:53:00 2002
User: heins
Date: 2002-01-30 00:52:29 GMT
Modified: lib/Vend Config.pm
Log:
* Fix bug found by Stefan, if no CodeDef is set in catalog.cfg
there will be a server error on use of a filter or order check.
Revision Changes Path
2.25 +3 -3 interchange/lib/Vend/Config.pm
rev 2.25, prev_rev 2.24
Index: Config.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Config.pm,v
retrieving revision 2.24
retrieving revision 2.25
diff -u -r2.24 -r2.25
--- Config.pm 29 Jan 2002 05:52:43 -0000 2.24
+++ Config.pm 30 Jan 2002 00:52:29 -0000 2.25
@@ -1,6 +1,6 @@
# Vend::Config - Configure Interchange
#
-# $Id: Config.pm,v 2.24 2002/01/29 05:52:43 mheins Exp $
+# $Id: Config.pm,v 2.25 2002/01/30 00:52:29 mheins Exp $
#
# Copyright (C) 1996-2001 Red Hat, Inc. <interchange@redhat.com>
#
@@ -44,7 +44,7 @@
use Vend::Parse;
use Vend::Util;
-$VERSION = substr(q$Revision: 2.24 $, 10);
+$VERSION = substr(q$Revision: 2.25 $, 10);
my %CDname;
@@ -3154,7 +3154,7 @@
sub parse_mapped_code {
my ($var, $value) = @_;
- return '' if ! $value;
+ return {} if ! $value and $C;
## Can't give CodeDef a default or this will be premature
get_system_code() unless defined $SystemCodeDone;