mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
[unpackfs] One last progress call afterwards
This commit is contained in:
parent
9ce34782ee
commit
6d85fd3586
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue