From 6d85fd3586dd6347aa45b068f93a0403fa1a3e3e Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 29 Mar 2019 16:24:22 -0400 Subject: [PATCH] [unpackfs] One last progress call afterwards --- src/modules/unpackfs/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/unpackfs/main.py b/src/modules/unpackfs/main.py index d406054d4..c250931a0 100644 --- a/src/modules/unpackfs/main.py +++ b/src/modules/unpackfs/main.py @@ -102,6 +102,8 @@ def file_copy(source, dest, progress_cb): if not source.endswith("/"): source += "/" + num_files_copied = 0 # Gets updated through rsync output + args = ['rsync', '-aHAXr'] args.extend(list_excludes(dest)) args.extend(['--progress', source, dest]) @@ -137,6 +139,7 @@ def file_copy(source, dest, progress_cb): progress_cb(num_files_copied) process.wait() + progress_cb(num_files_copied) # Push towards 100% # 23 is the return code rsync returns if it cannot write extended # attributes (with -X) because the target file system does not support it,