From f1f2f253b7a7d648120ca4bfc9ee3a01730ea2fc Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 11 Oct 2013 23:02:27 +0100 Subject: lib/oe/path: Fix copytree functions for tar 1.27 tar version 1.27 returns: tar: --same-order option cannot be used with -c with the commandlines we have been using. We can remove the -s option (which is --same-order) to remove the error. Signed-off-by: Richard Purdie (cherry picked from commit 69c26e795c117aabfaf313abbfd10e70ede633d9) Conflicts: meta/lib/oe/path.py --- meta/lib/oe/path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py index 1fdfa8724f..92a591035f 100644 --- a/meta/lib/oe/path.py +++ b/meta/lib/oe/path.py @@ -82,7 +82,7 @@ def copytree(src, dst): # This way we also preserve hardlinks between files in the tree. bb.utils.mkdirhier(dst) - cmd = 'tar -cf - -C %s -ps . | tar -xf - -C %s' % (src, dst) + cmd = 'tar -cf - -C %s -p . | tar -xf - -C %s' % (src, dst) check_output(cmd, shell=True, stderr=subprocess.STDOUT) -- cgit 1.2.3-korg