diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2023-05-15 19:37:39 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-07-12 05:13:59 -1000 |
commit | f3a78fecc2bb95c2d66e5d8cad5815db9acb837d (patch) | |
tree | 81036bfd2534aa83bd66d6a9b2c80562c87c825b /meta/classes | |
parent | 8c4bad844f8c1544740fd017ba16f0d062ac4ceb (diff) | |
download | poky-f3a78fecc2bb95c2d66e5d8cad5815db9acb837d.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: 236a3e0bf753669b4fddbd91be5fdb10c2e6093f)
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')
-rw-r--r-- | meta/classes/go.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass index 16e46398b1..21b1a0271e 100644 --- a/meta/classes/go.bbclass +++ b/meta/classes/go.bbclass | |||
@@ -118,7 +118,7 @@ go_do_install() { | |||
118 | tar -C ${B} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' pkg | \ | 118 | tar -C ${B} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' pkg | \ |
119 | tar -C ${D}${libdir}/go --no-same-owner -xf - | 119 | tar -C ${D}${libdir}/go --no-same-owner -xf - |
120 | 120 | ||
121 | if [ -n "`ls ${B}/${GO_BUILD_BINDIR}/`" ]; then | 121 | if ls ${B}/${GO_BUILD_BINDIR}/* >/dev/null 2>/dev/null ; then |
122 | install -d ${D}${bindir} | 122 | install -d ${D}${bindir} |
123 | install -m 0755 ${B}/${GO_BUILD_BINDIR}/* ${D}${bindir}/ | 123 | install -m 0755 ${B}/${GO_BUILD_BINDIR}/* ${D}${bindir}/ |
124 | fi | 124 | fi |