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:12:42 +0000 |
| commit | 9abab49f2bcac3ea80f96f837e181904bfae8848 (patch) | |
| tree | 863f0a8f90ea0ca21e2f7922704fbaee4c0b9650 /bitbake/lib/bb/cookerdata.py | |
| parent | 5fb6b453f633796f28e230420e17b644adde8b11 (diff) | |
| download | poky-9abab49f2bcac3ea80f96f837e181904bfae8848.tar.gz | |
bitbake: lib/bb: Clean up use of len()
(Bitbake rev: bbbc843e86639604d00d76b1949b94a78cf1d95d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
| -rw-r--r-- | bitbake/lib/bb/cookerdata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py index ba657c03b6..592bc2968e 100644 --- a/bitbake/lib/bb/cookerdata.py +++ b/bitbake/lib/bb/cookerdata.py | |||
| @@ -86,7 +86,7 @@ class ConfigParameters(object): | |||
| 86 | action['msg'] = "Only one target can be used with the --environment option." | 86 | action['msg'] = "Only one target can be used with the --environment option." |
| 87 | elif self.options.buildfile and len(self.options.pkgs_to_build) > 0: | 87 | elif self.options.buildfile and len(self.options.pkgs_to_build) > 0: |
| 88 | action['msg'] = "No target should be used with the --environment and --buildfile options." | 88 | action['msg'] = "No target should be used with the --environment and --buildfile options." |
| 89 | elif len(self.options.pkgs_to_build) > 0: | 89 | elif self.options.pkgs_to_build: |
| 90 | action['action'] = ["showEnvironmentTarget", self.options.pkgs_to_build] | 90 | action['action'] = ["showEnvironmentTarget", self.options.pkgs_to_build] |
| 91 | else: | 91 | else: |
| 92 | action['action'] = ["showEnvironment", self.options.buildfile] | 92 | action['action'] = ["showEnvironment", self.options.buildfile] |
