[interchange-cvs] interchange - kwalsh modified lib/Vend/Config.pm
interchange-core@interchange.redhat.com
interchange-core@interchange.redhat.com
Thu Jan 31 00:39:00 2002
User: kwalsh
Date: 2002-01-31 05:38:12 GMT
Modified: lib/Vend Config.pm
Log:
If you put a UserTag in the interchange.cfg, get_system_code() will
be called twice. The second call will result in complaints about
re-definitions.
This patch fixes that.
Revision Changes Path
2.28 +3 -3 interchange/lib/Vend/Config.pm
rev 2.28, prev_rev 2.27
Index: Config.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Config.pm,v
retrieving revision 2.27
retrieving revision 2.28
diff -u -r2.27 -r2.28
--- Config.pm 31 Jan 2002 02:46:00 -0000 2.27
+++ Config.pm 31 Jan 2002 05:38:12 -0000 2.28
@@ -1,6 +1,6 @@
# Vend::Config - Configure Interchange
#
-# $Id: Config.pm,v 2.27 2002/01/31 02:46:00 mheins Exp $
+# $Id: Config.pm,v 2.28 2002/01/31 05:38:12 kwalsh 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.27 $, 10);
+$VERSION = substr(q$Revision: 2.28 $, 10);
my %CDname;
@@ -1249,7 +1249,7 @@
# In case no user-supplied config has been given...returns
# with no effect if that has been done already.
- get_system_code();
+ get_system_code() unless defined $SystemCodeDone;
# Do some cleanup
set_global_defaults();