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) @@ -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 2009-02-02Z16:27:18
This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:10 GMT