diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-02 11:07:17 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-03 10:09:59 +0000 |
commit | bbbc843e86639604d00d76b1949b94a78cf1d95d (patch) | |
tree | b24f165091858fb622e58dfdd292772753fa07d5 /lib/bb/cookerdata.py | |
parent | 42526a402357e04794f4cb6f21ac18f562220a9b (diff) | |
download | bitbake-bbbc843e86639604d00d76b1949b94a78cf1d95d.tar.gz |
lib/bb: Clean up use of len()
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cookerdata.py')
-rw-r--r-- | lib/bb/cookerdata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py index ba657c03b..592bc2968 100644 --- a/lib/bb/cookerdata.py +++ b/lib/bb/cookerdata.py @@ -86,7 +86,7 @@ class ConfigParameters(object): action['msg'] = "Only one target can be used with the --environment option." elif self.options.buildfile and len(self.options.pkgs_to_build) > 0: action['msg'] = "No target should be used with the --environment and --buildfile options." - elif len(self.options.pkgs_to_build) > 0: + elif self.options.pkgs_to_build: action['action'] = ["showEnvironmentTarget", self.options.pkgs_to_build] else: action['action'] = ["showEnvironment", self.options.buildfile] |