[mirrorbrain-commits] r8223 - /trunk/mb/mb.py

From: <poeml_at_mirrorbrain.org>
Date: Sun, 14 Nov 2010 11:47:39 -0000
Author: poeml
Date: Sun Nov 14 12:47:37 2010
New Revision: 8223

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8223&view=rev
Log:
mb scan:
- skip the pre-scanning check for existance of a subdirectory when scanning
  only one mirror. Either the directory will be there, or not.

Modified:
    trunk/mb/mb.py

Modified: trunk/mb/mb.py
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mb/mb.py?rev=8223&r1=8222&r2=8223&view=diff
==============================================================================
--- trunk/mb/mb.py (original)
+++ trunk/mb/mb.py Sun Nov 14 12:47:37 2010
_at_@ -830,7 +830,7 @@
 
         mirrors_to_scan = []
         mirrors_skipped = []
-        if not opts.directory:
+        if not opts.directory or len(mirrors) == 1:
             mirrors_to_scan = [ i for i in mirrors ]
         else:
             print 'Checking for existance of %r directory' % opts.directory
_at_@ -864,7 +864,7 @@
         if self.options.debug:
             print cmd
         
-        if opts.directory:
+        if opts.directory and len(mirrors) != 1:
             print 'Completed in', mb.util.timer_elapsed()
             mb.util.timer_start()
 




_______________________________________________
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 Nov 14 2010 - 11:47:45 GMT

This archive was generated by hypermail 2.3.0 : Sun Nov 14 2010 - 12:17:12 GMT