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 @@ -230,6 +230,12 @@ help='also display the AS') @cmdln.option('--prio', action='store_true', help='also display priorities') + @cmdln.option('-R', '--rsync-url', action='store_true', + help='also display the rsync URL') + @cmdln.option('-F', '--ftp-url', action='store_true', + help='also display the FTP URL') + @cmdln.option('-H', '--http-url', action='store_true', + help='also display the HTTP URL') @cmdln.option('--disabled', action='store_true', help='show only disabled mirrors') @cmdln.option('-a', '--show-disabled', action='store_true', @@ -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.orgReceived on Sun Dec 13 2009 - 23:39:50 GMT
This archive was generated by hypermail 2.2.0 : Tue Dec 15 2009 - 15:20:04 GMT