diff options
| author | Vyacheslav Yurkov <Vyacheslav.Yurkov@wika.com> | 2023-11-02 11:47:34 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-12-05 11:51:37 -1000 |
| commit | bdfac04a9f4047e9286a3029064fec3a8b8656e4 (patch) | |
| tree | f1fb9cdb5ad4d2c4cb691bc6de2123eaea74c2d1 | |
| parent | b680a95e6b8e0e69e19b38400b33bba3ad45be1c (diff) | |
| download | poky-bdfac04a9f4047e9286a3029064fec3a8b8656e4.tar.gz | |
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: c45f3e00189e034157996b88103a83efec3e0cf6)
Signed-off-by: Vyacheslav Yurkov <Vyacheslav.Yurkov@wika.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit f92c751281609ea6bd6b838307de4bc70bf26ab9)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/lib/oe/path.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py index 0dc8f172d5..e2f1913a35 100644 --- a/meta/lib/oe/path.py +++ b/meta/lib/oe/path.py | |||
| @@ -125,7 +125,8 @@ def copyhardlinktree(src, dst): | |||
| 125 | if os.path.isdir(src): | 125 | if os.path.isdir(src): |
| 126 | if len(glob.glob('%s/.??*' % src)) > 0: | 126 | if len(glob.glob('%s/.??*' % src)) > 0: |
| 127 | source = './.??* ' | 127 | source = './.??* ' |
| 128 | source += './*' | 128 | if len(glob.glob('%s/**' % src)) > 0: |
| 129 | source += './*' | ||
| 129 | s_dir = src | 130 | s_dir = src |
| 130 | else: | 131 | else: |
| 131 | source = src | 132 | source = src |
