[mirrorbrain-commits] [opensuse-svn] r6354 - trunk/tools/download-redirector-v2/mirrordoctor

From: Novell Forge SVN <noreply_at_novell.com>
Date: Tue, 3 Feb 2009 12:34:44 -0700 (MST)
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)
@@ -453,6 +453,11 @@
         mirror.identifier = new_identifier
 
 
+    @cmdln.option('--sql-debug', action='store_true',
+                  help='Show SQL statements for debugging purposes.')
+    @cmdln.option('-v', '--verbose', dest='verbosity', action='count',
+                  help='Increase verbosity for debugging purposes. '
+                       'Can be given multiple times.')
     @cmdln.option('-e', '--enable', action='store_true',
                   help='Enable a mirror, after it was scanned. Useful with -f')
     @cmdln.option('-a', '--all', action='store_true',
@@ -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.org
Received on 2009-02-03Z19:35:14

This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:10 GMT