diff options
author | Charlie Davies <charles.davies@whitetree.xyz> | 2021-02-18 20:52:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-21 22:01:56 +0000 |
commit | 4952dcbd518165b676111d318c36ebbce8f8f703 (patch) | |
tree | 3607eda04ac170596644d8acb65c1ff5c5ce6e36 | |
parent | d47f4553893d0468827cc675a5b4334c9a0fdd29 (diff) | |
download | poky-4952dcbd518165b676111d318c36ebbce8f8f703.tar.gz |
bitbake: bitbake: providers: use pythonic empty list check
(Bitbake rev: 591542734988856afa53b99e5eef6e5ca15630b8)
Signed-off-by: Charlie Davies <charles.davies@whitetree.xyz>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/providers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py index 32b2261eb0..b5a6cd0090 100644 --- a/bitbake/lib/bb/providers.py +++ b/bitbake/lib/bb/providers.py | |||
@@ -248,7 +248,7 @@ def _filterProviders(providers, item, cfgData, dataCache): | |||
248 | preferred_versions[pn] = findLatestProvider(pn, cfgData, dataCache, sortpkg_pn[pn][0]) | 248 | preferred_versions[pn] = findLatestProvider(pn, cfgData, dataCache, sortpkg_pn[pn][0]) |
249 | eligible.append(preferred_versions[pn][1]) | 249 | eligible.append(preferred_versions[pn][1]) |
250 | 250 | ||
251 | if len(eligible) == 0: | 251 | if not eligible: |
252 | logger.error("no eligible providers for %s", item) | 252 | logger.error("no eligible providers for %s", item) |
253 | return eligible | 253 | return eligible |
254 | 254 | ||