[mirrorbrain-commits] [opensuse-svn] r6309 - trunk/tools/download-redirector-v2/scanner

From: Novell Forge SVN <noreply_at_novell.com>
Date: Mon, 2 Feb 2009 09:26:58 -0700 (MST)
Author: poeml
Date: 2009-02-02 09:26:54 -0700 (Mon, 02 Feb 2009)
New Revision: 6309

Modified:
   trunk/tools/download-redirector-v2/scanner/scanner.pl
Log:
scanner: read the database driver from mirrorbrain.conf

Modified: trunk/tools/download-redirector-v2/scanner/scanner.pl
===================================================================
--- trunk/tools/download-redirector-v2/scanner/scanner.pl	2009-02-02 07:15:58 UTC (rev 6308)
+++ trunk/tools/download-redirector-v2/scanner/scanner.pl	2009-02-02 16:26:54 UTC (rev 6309)
_at_@ -190,7 +190,8 @@
 my $db_port = '3306';
 $db_port = $cfg->val($brain_instance, 'dbport') 
 		if $cfg->val($brain_instance, 'dbport');
-my $db_cred = { dbi => 'dbi:mysql:dbname=' . $cfg->val( $brain_instance, 'dbname') 
+my $db_cred = { dbi => 'dbi:' .  $cfg->val( $brain_instance, 'dbdriver')
+                              . ':dbname=' . $cfg->val( $brain_instance, 'dbname') 
                               . ';host='   . $cfg->val( $brain_instance, 'dbhost')
                               . ';port='   . $db_port,
                 user => $cfg->val( $brain_instance, 'dbuser'), 

_______________________________________________
Opensuse-svn mailing list
Opensuse-svn_at_forge.novell.com
http://forge.novell.com/mailman/listinfo/opensuse-svn


_______________________________________________
mirrorbrain-commits mailing list

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Mon Feb 02 2009 - 16:27:18 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT