From: JF Ding Date: Fri, 15 Aug 2014 11:18:07 +0000 (+0800) Subject: To use "--delay-updates" for rsync for atomic sync X-Git-Tag: 1.0~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8f6eb7ed7d824935abf9a5e69a6cd054872a537;p=services%2Fjenkins-scripts.git To use "--delay-updates" for rsync for atomic sync Sometime, the users noticed the images in download server have wrong md5sum and cannot boot. It's possible it's a partial downloaded file, caused by atomic rsyncing problem. This rsync command line option will help it. Change-Id: I9ef2344cd01594fb33080feaaa193714cb4a5570 Signed-off-by: JF Ding --- diff --git a/common/utils.py b/common/utils.py index 0e3c468..70769f8 100644 --- a/common/utils.py +++ b/common/utils.py @@ -118,7 +118,7 @@ def sync(source, destination, remove=True): # Through rsync protocol if destination.startswith('rsync:'): - cmd = "rsync -av %s/ %s" % (source, destination) + cmd = "rsync -av --delay-updates %s/ %s" % (source, destination) try: ret_code = subprocess.call(cmd, shell = True)