ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/DB.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/DB.pm (file contents):
Revision 1.26 by root, Wed Dec 26 18:09:30 2007 UTC vs.
Revision 1.27 by root, Wed Dec 26 18:20:46 2007 UTC

22use Config; 22use Config;
23use BDB; 23use BDB;
24 24
25use CFPlus; 25use CFPlus;
26 26
27our $DB_HOME = "$Deliantra::VARDIR/cfplus-" . BDB::VERSION . "-$Config{archname}"; 27our $DBDIR = "cfplus-" . BDB::VERSION . "-$Config{archname}";
28our $DB_HOME = "$Deliantra::VARDIR/$DBDIR";
29
30if (!-e $DB_HOME and -e "$Deliantra::OLDDIR/$DBDIR") {
31 rename "$Deliantra::OLDDIR/$DBDIR", $DB_HOME;
32 print STDERR "INFO: moved old database from $Deliantra::OLDDIR/$DBDIR to $DB_HOME\n";
33}
28 34
29our $DB_ENV; 35our $DB_ENV;
30our $DB_STATE; 36our $DB_STATE;
31our %DB_TABLE; 37our %DB_TABLE;
32 38

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines