From: Vyacheslav Yurkov Date: Thu, 2 Nov 2023 10:47:34 +0000 (+0100) Subject: lib/oe/path: Deploy files can start only with a dot X-Git-Tag: yocto-5.2~4697 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f92c751281609ea6bd6b838307de4bc70bf26ab9;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git lib/oe/path: Deploy files can start only with a dot There might be only hidden files deployed. In that case we don't need a generic wildcard present in copy command, otherwise it fails with: Exception: subprocess.CalledProcessError: Command 'cp -afl --preserve=xattr ./.??* ./* /tmp/deploy/images/qemux86-64' returned non-zero exit status 1. Subprocess output: cp: cannot stat './*': No such file or directory Signed-off-by: Vyacheslav Yurkov Signed-off-by: Alexandre Belloni --- diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py index 0dc8f172d5c..e2f1913a35c 100644 --- a/meta/lib/oe/path.py +++ b/meta/lib/oe/path.py @@ -125,7 +125,8 @@ def copyhardlinktree(src, dst): if os.path.isdir(src): if len(glob.glob('%s/.??*' % src)) > 0: source = './.??* ' - source += './*' + if len(glob.glob('%s/**' % src)) > 0: + source += './*' s_dir = src else: source = src