A while ago I posted some patches for remote mysql support, and then later
noticed that this file needed to be updated as well. I sent this as a
seperate patch but it hasn't been included yet, so I'm resending it.
This patch is against the most recent CVS; I'm not sure if it's still
accurate - this message has been sitting in my to-be-sent box forever and
I haven't updated from CVS in even longer.
Chris
Index: tools/AddFiles.pl
===================================================================
RCS file: /src/repository/obs/tools/AddFiles.pl,v
retrieving revision 1.8
diff -u -r1.8 AddFiles.pl
--- tools/AddFiles.pl 2001/03/16 21:09:42 1.8
+++ tools/AddFiles.pl 2001/03/16 21:52:38
@@ -32,7 +32,6 @@
my $FileMask;
my $UpdateTracks = 0;
my $Testing = 0;
-my ($DB, $Host, $Port, $User, $Password);
my ($dbh, $Volume, $UrlPath);
sub GetInfoFromFileName
@@ -302,7 +301,6 @@
my $Dummy;
($Dummy, $FileMask, $AllowedChars) = Obs::Defs::GetLocalAccessInfo();
-($DB, $Host, $Port, $User, $Password) = Obs::Defs::GetDBInfo();
if (!defined $FileMask || $FileMask eq '' ||
!defined $AllowedChars || $AllowedChars eq '')
@@ -318,7 +316,8 @@
}
$dbh = Obs::LocalIO::new();
-exit if !$dbh->ConnectDb("dbi:mysql:$DB", $User, $Password);
+exit if !$dbh->ConnectDb(Obs::Defs::DSN, Obs::Defs::DB_USER,
+ Obs::Defs::DB_PASSWD );
print("Connected to database.\n");
_______________________________________________
Obs-dev mailing list
[EMAIL PROTECTED]
http://www.freeamp.org/mailman/listinfo/obs-dev