OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-registry Date: 03-Aug-2006 02:11:50 Branch: HEAD Handle: 2006080301114900 Modified files: openpkg-registry registry-db.pl Log: swap order and setup session database first because it is a candidate to fail if called by a user with not enough filesystem permissions. The complex registry database won't notice because it talks over the network Summary: Revision Changes Path 1.47 +7 -7 openpkg-registry/registry-db.pl ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-registry/registry-db.pl ============================================================================ $ cvs diff -u -r1.46 -r1.47 registry-db.pl --- openpkg-registry/registry-db.pl 2 Aug 2006 23:30:35 -0000 1.46 +++ openpkg-registry/registry-db.pl 3 Aug 2006 00:11:49 -0000 1.47 @@ -479,13 +479,6 @@ $dbh->disconnect(); undef $dbh; - # registry - # - $dbh = &dbopen("registry"); - die "ERROR:$0: DataBase error: ".$DBI::errstr."\n" if (not defined $dbh); - while (&upgraderegistry()) {}; - $dbh->disconnect(); undef $dbh; - # session # $dbh = &dbopen("session"); @@ -493,6 +486,13 @@ chmod oct("0664"), $cfg->{db}->{session}->{dbfile}; while (&upgradesession()) {}; $dbh->disconnect(); undef $dbh; + + # registry + # + $dbh = &dbopen("registry"); + die "ERROR:$0: DataBase error: ".$DBI::errstr."\n" if (not defined $dbh); + while (&upgraderegistry()) {}; + $dbh->disconnect(); undef $dbh; } sub upgradesession() @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org