diff options
author | Frazer Clews <frazer.clews@codethink.co.uk> | 2020-01-16 17:11:19 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-19 13:30:58 +0000 |
commit | b809a6812aa15a8a9af97bc382cc4b19571e6bfc (patch) | |
tree | 2558aa5cbbf8807b56968fdd1a2850a65aa897b7 /lib/bb/taskdata.py | |
parent | 4367692a932ac135c5aa4f9f2a4e4f0150f76697 (diff) | |
download | bitbake-b809a6812aa15a8a9af97bc382cc4b19571e6bfc.tar.gz |
lib: amend code to use proper singleton comparisons where possible
amend the code to handle singleton comparisons properly so it only checks
if they only refer to the same object or not, and not bother
comparing the values.
Signed-off-by: Frazer Clews <frazer.clews@codethink.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/taskdata.py')
-rw-r--r-- | lib/bb/taskdata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/taskdata.py b/lib/bb/taskdata.py index 8c25e09e8..d13a12498 100644 --- a/lib/bb/taskdata.py +++ b/lib/bb/taskdata.py @@ -362,7 +362,7 @@ class TaskData: bb.event.fire(bb.event.NoProvider(item, dependees=self.get_dependees(item), reasons=["No eligible PROVIDERs exist for '%s'" % item]), cfgData) raise bb.providers.NoProvider(item) - if len(eligible) > 1 and foundUnique == False: + if len(eligible) > 1 and not foundUnique: if item not in self.consider_msgs_cache: providers_list = [] for fn in eligible: |