[mirrorbrain-commits] r7873 - /trunk/tools/null-rsync

From: <poeml_at_mirrorbrain.org>
Date: Sat, 28 Nov 2009 00:59:23 -0000
Author: poeml
Date: Sat Nov 28 01:59:22 2009
New Revision: 7873

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7873&view=rev
Log:
null-rsync:
- small documentation fixed
- don't print informational, but irrelevant message about delayed mtime setting

Modified:
    trunk/tools/null-rsync

Modified: trunk/tools/null-rsync
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/tools/null-rsync?rev=7873&r1=7872&r2=7873&view=diff
==============================================================================
--- trunk/tools/null-rsync (original)
+++ trunk/tools/null-rsync Sat Nov 28 01:59:22 2009
_at_@ -2,7 +2,7 @@
 
 """
 Create a local file tree as copy from a remote server via rsync.
-
+All files will contain zeroes.
 
     Copyright 2009 Peter Poeml
 
_at_@ -44,8 +44,7 @@
 
 Timestamps on symlinks can't be set by Python (its os.utime() implementation
 always follows to the target). (It *would* work if Python would export
-utimensat() with AT_SYMLINK_NOFOLLOW.) But doesnt' matter.
-
+utimensat() with AT_SYMLINK_NOFOLLOW.) But it doesn't really matter.
 
 """
 
_at_@ -212,7 +211,8 @@
     
 while len(mtime_dir_list) > 0:
     path, mtime_rsync = mtime_dir_list.pop()
-    print 'delayed setting of mtime on %r' % path
+    if verbose:
+        print 'delayed setting of mtime on %r' % path
 
     t = time.strptime(mtime_rsync, '%Y/%m/%d-%H:%M:%S')
     mtime = int(time.mktime(t))




_______________________________________________
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 Sat Nov 28 2009 - 00:59:24 GMT

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