Author: poeml Date: Sun Nov 14 17:23:46 2010 New Revision: 8229 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8229&view=rev Log: mb makehashes: - If specified paths contain duplicated slashes, these were introduced as wrong filenames into the database. This has been fixed (issue #72). Modified: trunk/mb/mb.py Modified: trunk/mb/mb.py URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mb/mb.py?rev=8229&r1=8228&r2=8229&view=diff ============================================================================== --- trunk/mb/mb.py (original) +++ trunk/mb/mb.py Sun Nov 14 17:23:46 2010 _at_@ -978,6 +978,11 @@ opts.target_dir = opts.target_dir.rstrip('/') opts.base_dir = opts.base_dir.rstrip('/') + double_slashes = re.compile('/+') + startdir = re.sub(double_slashes, '/', startdir) + opts.target_dir = re.sub(double_slashes, '/', opts.target_dir) + opts.base_dir = re.sub(double_slashes, '/', opts.base_dir) + if not os.path.exists(startdir): sys.exit('STARTDIR %r does not exist' % startdir) _______________________________________________ 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 Nov 14 2010 - 16:23:51 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT