Author: poeml Date: 2009-02-03 12:34:42 -0700 (Tue, 03 Feb 2009) New Revision: 6354 Modified: trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py Log: mirrorbrain tool: - extend "mb scan" to accept -v and --sql-debug and pass it to the scanner Modified: trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py =================================================================== --- trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py 2009-02-03 19:21:16 UTC (rev 6353) +++ trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py 2009-02-03 19:34:42 UTC (rev 6354) _at_@ -453,6 +453,11 @@ mirror.identifier = new_identifier + _at_cmdln.option('--sql-debug', action='store_true', + help='Show SQL statements for debugging purposes.') + _at_cmdln.option('-v', '--verbose', dest='verbosity', action='count', + help='Increase verbosity for debugging purposes. ' + 'Can be given multiple times.') _at_cmdln.option('-e', '--enable', action='store_true', help='Enable a mirror, after it was scanned. Useful with -f') _at_cmdln.option('-a', '--all', action='store_true', _at_@ -477,6 +482,11 @@ cmd += ' ' if self.options.brain_instance: cmd += '-b %s ' % self.options.brain_instance + + if opts.sql_debug: + cmd += '-S ' + cmd += '-v ' * opts.verbosity + if opts.enable: cmd += '-e ' if opts.directory: _______________________________________________ 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 Tue Feb 03 2009 - 19:35:14 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT