[mirrorbrain-commits] r7769 - /trunk/mirrordoctor/mirrordoctor.py

From: <poeml_at_mirrorbrain.org>
Date: Fri, 21 Aug 2009 19:53:58 -0000
Author: poeml
Date: Fri Aug 21 21:53:58 2009
New Revision: 7769

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7769&view=rev
Log:
mb export:
- when writing a mirror list for mirmon, hide disabled mirrors

Modified:
    trunk/mirrordoctor/mirrordoctor.py

Modified: trunk/mirrordoctor/mirrordoctor.py
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mirrordoctor/mirrordoctor.py?rev=7769&r1=7768&r2=7769&view=diff
==============================================================================
--- trunk/mirrordoctor/mirrordoctor.py (original)
+++ trunk/mirrordoctor/mirrordoctor.py Fri Aug 21 21:53:58 2009
_at_@ -1009,7 +1009,7 @@
 
 
     _at_cmdln.option('--project', metavar='PROJECT',
-                  help='Specify a project name (previously corresponding to a MirrorBrain instance).')
+                  help='(only for django format) Specify a project name (previously corresponding to a MirrorBrain instance).')
     _at_cmdln.option('--commit', metavar='VCS',
                   help='run "VCS commit" on the directory specified via --target-dir')
     _at_cmdln.option('--target-dir', metavar='PATH',
_at_@ -1105,6 +1105,8 @@
                 print mb.exports.postgresql_template % d
 
             elif opts.format == 'mirmon':
+                if not m.enabled:
+                    continue
                 for proto, urlname in [('http', 'baseurl'), 
                                        ('ftp', 'baseurlFtp'),
                                        ('rsync', 'baseurlRsync')]:




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

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 Fri Aug 21 2009 - 19:53:59 GMT

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