diff options
author | Matt Madison <matt@madison.systems> | 2020-11-12 06:51:41 -0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2020-11-17 11:45:12 +0800 |
commit | b6c3950be8e4edbdde74b5819c974124e30680c7 (patch) | |
tree | 93ace261c25e346fdc0c0353cb38846132cefe9d /meta/conf/layer.conf | |
parent | 93178cea0e694cccd602ba965909f50f1b7159c7 (diff) | |
download | openembedded-core-contrib-b6c3950be8e4edbdde74b5819c974124e30680c7.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.
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: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'meta/conf/layer.conf')
-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 2d9cd05695..cda37c33b4 100644 --- a/meta/conf/layer.conf +++ b/meta/conf/layer.conf @@ -104,4 +104,4 @@ SSTATE_EXCLUDEDEPS_SYSROOT += ".*->autoconf-archive-native" # We need to keep bitbake tools in PATH # Avoid empty path entries BITBAKEPATH := "${@os.path.dirname(bb.utils.which(d.getVar('PATH'),'bitbake'))}" -PATH := "${@'${BITBAKEPATH}:' if '${BITBAKEPATH}' is not '' else ''}${HOSTTOOLS_DIR}" +PATH := "${@'${BITBAKEPATH}:' if '${BITBAKEPATH}' != '' else ''}${HOSTTOOLS_DIR}" |