From edc70c596b5e8654950685825bc26ebb18aa87c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Fri, 1 Aug 2014 11:46:29 +0200 Subject: [PATCH] unsquashfs: Fix installation dir --- src/modules/unsquashfs/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/unsquashfs/main.py b/src/modules/unsquashfs/main.py index 9beef30df..ef348f6c5 100644 --- a/src/modules/unsquashfs/main.py +++ b/src/modules/unsquashfs/main.py @@ -46,6 +46,11 @@ def file_copy(source, dest, progress_cb): at_env = os.environ at_env["LC_ALL"] = "C" + # `source` *must* end with '/' otherwise a directory named after the source + # will be created in `dest`: ie if `source` is "/foo/bar" and `dest` is + # "/dest", then files will be copied in "/dest/bar". + source += "/" + process = subprocess.Popen(['rsync', '-ar', '--progress', source, dest], env=at_env, bufsize=1,