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.orgReceived on Mon Feb 02 2009 - 16:27:18 GMT
This archive was generated by hypermail 2.3.0 : Thu Mar 25 2010 - 19:18:16 GMT