Revert "Revert "[unpackfs] Reading from the pipe is line-oriented""

This reverts commit b93efaa30b.
This commit is contained in:
Philip Müller 2020-02-22 20:30:51 +01:00
parent b93efaa30b
commit 5e9f602d0b

View File

@ -133,7 +133,8 @@ def file_copy(source, entry, progress_cb):
args.extend(["--exclude", f]) args.extend(["--exclude", f])
args.extend(['--progress', source, dest]) args.extend(['--progress', source, dest])
process = subprocess.Popen( process = subprocess.Popen(
args, env=at_env, bufsize=1, stdout=subprocess.PIPE, close_fds=ON_POSIX args, env=at_env, universal_newlines=True, bufsize=1,
stdout=subprocess.PIPE, close_fds=ON_POSIX
) )
# last_num_files_copied trails num_files_copied, and whenever at least 100 more # last_num_files_copied trails num_files_copied, and whenever at least 100 more
# files have been copied, progress is reported and last_num_files_copied is updated. # files have been copied, progress is reported and last_num_files_copied is updated.