From 1b4e56e97eed13e67e69e77f4a3537ffa2b061d4 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Mon, 28 Jul 2014 11:58:20 +0200 Subject: [PATCH] Better call to rsync in unsquashfs. --- src/modules/unsquashfs/filecopy.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/modules/unsquashfs/filecopy.py b/src/modules/unsquashfs/filecopy.py index 8ca84255b..f130b8727 100644 --- a/src/modules/unsquashfs/filecopy.py +++ b/src/modules/unsquashfs/filecopy.py @@ -27,7 +27,6 @@ import subprocess import re -COPY_CMD = 'rsync -ar --progress %(source)s %(dest)s' ON_POSIX = 'posix' in sys.builtin_module_names @@ -39,11 +38,7 @@ class FileCopy: self.at_env = os.environ self.at_env["LC_ALL"] = "C" - self.process = subprocess.Popen( - ( COPY_CMD % { - 'source': source, - 'dest': dest, - } ).split(), + self.process = subprocess.Popen( [ 'rsync', '-ar', '--progress', source, dest ], env=self.at_env, bufsize=1, stdout=subprocess.PIPE,