[interchange-cvs] interchange - racke modified lib/Vend/Data.pm
interchange-core@icdevgroup.org
interchange-core@icdevgroup.org
Mon Dec 16 06:06:00 2002
User: racke
Date: 2002-12-16 11:05:33 GMT
Modified: lib/Vend Data.pm
Log:
this should fix a longstanding bug where Interchange get stuck into
an infinite loop on startup in case of wrong SQL database access
information, which occurs on the second table maybe due to the
bad setting in DBI, please test this change
Revision Changes Path
2.21 +2 -2 interchange/lib/Vend/Data.pm
rev 2.21, prev_rev 2.20
Index: Data.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Data.pm,v
retrieving revision 2.20
retrieving revision 2.21
diff -u -r2.20 -r2.21
--- Data.pm 13 Dec 2002 21:35:29 -0000 2.20
+++ Data.pm 16 Dec 2002 11:05:33 -0000 2.21
@@ -1,6 +1,6 @@
# Vend::Data - Interchange databases
#
-# $Id: Data.pm,v 2.20 2002/12/13 21:35:29 mheins Exp $
+# $Id: Data.pm,v 2.21 2002/12/16 11:05:33 racke Exp $
#
# Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
#
@@ -1076,7 +1076,7 @@
if($@) {
#::logDebug("Dieing of $@");
die $@ unless $no_import;
- die $@ unless $tried_import++;
+ die $@ if $tried_import++;
if(! -f $database_dbm) {
$Vend::ForceImport{$obj->{name}} = 1;
return import_database($obj);