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 @@ -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 @@ -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. """ @@ -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.orgReceived on Sat Nov 28 2009 - 00:59:24 GMT
This archive was generated by hypermail 2.2.0 : Sat Nov 28 2009 - 01:45:31 GMT