diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2023-05-15 19:37:39 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-06-14 04:14:25 -1000 |
commit | 0fb1391bfd541d4a9d710c08b2c80671b48ffa16 (patch) | |
tree | 013a116cb90f37735ab9b787af24169bbd009970 /meta/classes-recipe | |
parent | 603be5082da80c8e8945e68d8b5ee902cd6da897 (diff) | |
download | poky-0fb1391bfd541d4a9d710c08b2c80671b48ffa16.tar.gz |
go.bbclass: don't use test to check output from ls
* avoids possibly confusing error message in log.do_install like:
ls: cannot access 'etcd/3.5.7-r0/build/bin/linux_arm64/': No such file or directory
(From OE-Core rev: 6f9b6145b473a1adcaf39c1af0d17bec00547ede)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 2f1777e6ac5269a71203b6a2c562a43503be95ae)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r-- | meta/classes-recipe/go.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/go.bbclass b/meta/classes-recipe/go.bbclass index 6b9748406d..9c29fecdce 100644 --- a/meta/classes-recipe/go.bbclass +++ b/meta/classes-recipe/go.bbclass | |||
@@ -132,7 +132,7 @@ go_do_install() { | |||
132 | tar -C ${B} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' pkg | \ | 132 | tar -C ${B} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' pkg | \ |
133 | tar -C ${D}${libdir}/go --no-same-owner -xf - | 133 | tar -C ${D}${libdir}/go --no-same-owner -xf - |
134 | 134 | ||
135 | if [ -n "`ls ${B}/${GO_BUILD_BINDIR}/`" ]; then | 135 | if ls ${B}/${GO_BUILD_BINDIR}/* >/dev/null 2>/dev/null ; then |
136 | install -d ${D}${bindir} | 136 | install -d ${D}${bindir} |
137 | install -m 0755 ${B}/${GO_BUILD_BINDIR}/* ${D}${bindir}/ | 137 | install -m 0755 ${B}/${GO_BUILD_BINDIR}/* ${D}${bindir}/ |
138 | fi | 138 | fi |