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

From: <poeml_at_mirrorbrain.org>
Date: Sun, 13 Dec 2009 23:39:49 -0000
Author: poeml
Date: Mon Dec 14 00:39:48 2009
New Revision: 7927

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7927&view=rev
Log:
mb list:
- new options -H, -F, -R, to display HTTP/FTP/rsync base URLs

Modified:
    trunk/mirrordoctor/mirrordoctor.py

Modified: trunk/mirrordoctor/mirrordoctor.py
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mirrordoctor/mirrordoctor.py?rev=7927&r1=7926&r2=7927&view=diff
==============================================================================
--- trunk/mirrordoctor/mirrordoctor.py (original)
+++ trunk/mirrordoctor/mirrordoctor.py Mon Dec 14 00:39:48 2009
_at_@ -230,6 +230,12 @@
                         help='also display the AS')
     _at_cmdln.option('--prio', action='store_true',
                         help='also display priorities')
+    _at_cmdln.option('-R', '--rsync-url', action='store_true',
+                        help='also display the rsync URL')
+    _at_cmdln.option('-F', '--ftp-url', action='store_true',
+                        help='also display the FTP URL')
+    _at_cmdln.option('-H', '--http-url', action='store_true',
+                        help='also display the HTTP URL')
     _at_cmdln.option('--disabled', action='store_true',
                         help='show only disabled mirrors')
     _at_cmdln.option('-a', '--show-disabled', action='store_true',
_at_@ -271,6 +277,12 @@
                 s.append('%5s' % mirror.asn)
             if opts.prefix:
                 s.append('%-19s' % mirror.prefix)
+            if opts.http_url:
+                s.append('%-55s' % mirror.baseurl)
+            if opts.ftp_url:
+                s.append('%-55s' % mirror.baseurlFtp)
+            if opts.rsync_url:
+                s.append('%-55s' % mirror.baseurlRsync)
             # boolean flags
             if opts.region_only:
                 s.append('region_only=%s' % mirror.regionOnly)




_______________________________________________
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 Sun Dec 13 2009 - 23:39:50 GMT

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