Better call to rsync in unsquashfs.
This commit is contained in:
parent
c42d021b61
commit
1b4e56e97e
@ -27,7 +27,6 @@ import subprocess
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
||||||
COPY_CMD = 'rsync -ar --progress %(source)s %(dest)s'
|
|
||||||
ON_POSIX = 'posix' in sys.builtin_module_names
|
ON_POSIX = 'posix' in sys.builtin_module_names
|
||||||
|
|
||||||
|
|
||||||
@ -39,11 +38,7 @@ class FileCopy:
|
|||||||
self.at_env = os.environ
|
self.at_env = os.environ
|
||||||
self.at_env["LC_ALL"] = "C"
|
self.at_env["LC_ALL"] = "C"
|
||||||
|
|
||||||
self.process = subprocess.Popen(
|
self.process = subprocess.Popen( [ 'rsync', '-ar', '--progress', source, dest ],
|
||||||
( COPY_CMD % {
|
|
||||||
'source': source,
|
|
||||||
'dest': dest,
|
|
||||||
} ).split(),
|
|
||||||
env=self.at_env,
|
env=self.at_env,
|
||||||
bufsize=1,
|
bufsize=1,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
|
Loading…
Reference in New Issue
Block a user