Author: poeml Date: Wed Jan 20 19:41:50 2010 New Revision: 7943 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7943&view=rev Log: mirrordoctor: - "mb file ls -u" did return broken URLs, if a base URL doesn't end in a slash. Fixing issue #36. Modified: trunk/mirrordoctor/mirrordoctor.py Modified: trunk/mirrordoctor/mirrordoctor.py URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mirrordoctor/mirrordoctor.py?rev=7943&r1=7942&r2=7943&view=diff ============================================================================== --- trunk/mirrordoctor/mirrordoctor.py (original) +++ trunk/mirrordoctor/mirrordoctor.py Wed Jan 20 19:41:50 2010 @@ -1000,7 +1000,7 @@ if opts.probe and opts.md5: print (sample.digest or ' ' * 32), if opts.url: - print row['baseurl'] + row['path'], + print row['baseurl'].rstrip('/') + '/' + row['path'], print except KeyboardInterrupt: print >>sys.stderr, 'interrupted!' _______________________________________________ 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 Wed Jan 20 2010 - 18:41:56 GMT
This archive was generated by hypermail 2.2.0 : Wed Jan 20 2010 - 18:47:16 GMT