[interchange-cvs] interchange - heins modified lib/Vend/Config.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Fri Apr 22 10:47:37 EDT 2005
User: heins
Date: 2005-04-22 14:47:37 GMT
Modified: lib/Vend Config.pm
Log:
* Fix bug in structure creation (overwriting hash members)
Revision Changes Path
2.167 +3 -3 interchange/lib/Vend/Config.pm
rev 2.167, prev_rev 2.166
Index: Config.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Config.pm,v
retrieving revision 2.166
retrieving revision 2.167
diff -u -r2.166 -r2.167
--- Config.pm 22 Apr 2005 03:02:43 -0000 2.166
+++ Config.pm 22 Apr 2005 14:47:37 -0000 2.167
@@ -1,6 +1,6 @@
# Vend::Config - Configure Interchange
#
-# $Id: Config.pm,v 2.166 2005/04/22 03:02:43 mheins Exp $
+# $Id: Config.pm,v 2.167 2005/04/22 14:47:37 mheins Exp $
#
# Copyright (C) 2002-2003 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -49,7 +49,7 @@
use Vend::File;
use Vend::Data;
-$VERSION = substr(q$Revision: 2.166 $, 10);
+$VERSION = substr(q$Revision: 2.167 $, 10);
my %CDname;
my %CPname;
@@ -1769,7 +1769,7 @@
else {
$walk = $walk->{$current};
if( CORE::ref($walk) eq 'HASH' ) {
- $ref->{$current} = {};
+ $ref->{$current} ||= {};
$ref = $ref->{$current};
}
else {
More information about the interchange-cvs
mailing list