mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +02:00
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 ./.??* ./* <BUILDDIR>/tmp/deploy/images/qemux86-64' returned non-zero exit status 1. Subprocess output: cp: cannot stat './*': No such file or directory (From OE-Core rev: f92c751281609ea6bd6b838307de4bc70bf26ab9) Signed-off-by: Vyacheslav Yurkov <Vyacheslav.Yurkov@wika.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
91359fd407
commit
914a921c33
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user