diff options
author | Matt Madison <matt@madison.systems> | 2020-11-12 06:51:41 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-08 23:47:30 +0100 |
commit | 60cfe38b513d474714500d1f5fcf408139c6a146 (patch) | |
tree | 75b51bf20f96c0a58fb0fbcf3ecccf656354b513 | |
parent | b35ee4a64ea33b2c060439e30868b0b7a507b4e8 (diff) | |
download | poky-60cfe38b513d474714500d1f5fcf408139c6a146.tar.gz |
layer.conf: fix syntax error in PATH setting
Commit 05a87be51b44608ce4f77ac332df90a3cd2445ef introduced
a Python conditional expression when updating PATH that
generates syntax warnings in bitbake-cookerdaemon.log:
Var <PATH[:=]>:1: SyntaxWarning: "is not" with a literal. Did you mean "!="?
Fix this by using the more appropriate '!=' comparison
operator.
(From OE-Core rev: b46b059a306b2823624e64adecded9f76430471a)
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2e753a12cf6bb98f9e0940e5ed6255ce8c538eed)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/conf/layer.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf index 1c432275be..7453655417 100644 --- a/meta/conf/layer.conf +++ b/meta/conf/layer.conf | |||
@@ -102,4 +102,4 @@ SSTATE_EXCLUDEDEPS_SYSROOT += ".*->autoconf-archive-native" | |||
102 | # We need to keep bitbake tools in PATH | 102 | # We need to keep bitbake tools in PATH |
103 | # Avoid empty path entries | 103 | # Avoid empty path entries |
104 | BITBAKEPATH := "${@os.path.dirname(bb.utils.which(d.getVar('PATH'),'bitbake'))}" | 104 | BITBAKEPATH := "${@os.path.dirname(bb.utils.which(d.getVar('PATH'),'bitbake'))}" |
105 | PATH := "${@'${BITBAKEPATH}:' if '${BITBAKEPATH}' is not '' else ''}${HOSTTOOLS_DIR}" | 105 | PATH := "${@'${BITBAKEPATH}:' if '${BITBAKEPATH}' != '' else ''}${HOSTTOOLS_DIR}" |