summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/event.py
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2020-02-18 18:48:02 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-19 11:26:12 +0000
commit50524c152cf374573feb2b63e656efe9758a7d4f (patch)
tree1dc34d6e1450c4e0cdbcb85131402c3c34d61692 /bitbake/lib/bb/event.py
parent17c60cc27b9f2ace94cbb1110953361f147d6242 (diff)
downloadpoky-50524c152cf374573feb2b63e656efe9758a7d4f.tar.gz
bitbake: event: Remove duplicated items from close matches
It printed duplicated ones when there are multiple similar recipes in differrent layers, for example, if python-lockfile in different layers, and there is no python3-lockfile: $ bitbake python3-lockfile ERROR: Nothing PROVIDES 'python3-lockfile'. Close matches: python-lockfile python-lockfile python3-aiofiles Remove the duplicated ones to fix the problem. (Bitbake rev: 5612192cec9f467e2ab5a86482cb34876d198bc6) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/event.py')
-rw-r--r--bitbake/lib/bb/event.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 5cfbf36126..d1359f0100 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -508,7 +508,7 @@ class NoProvider(Event):
508 extra = '' 508 extra = ''
509 if not self._reasons: 509 if not self._reasons:
510 if self._close_matches: 510 if self._close_matches:
511 extra = ". Close matches:\n %s" % '\n '.join(self._close_matches) 511 extra = ". Close matches:\n %s" % '\n '.join(sorted(set(self._close_matches)))
512 512
513 if self._dependees: 513 if self._dependees:
514 msg = "Nothing %sPROVIDES '%s' (but %s %sDEPENDS on or otherwise requires it)%s" % (r, self._item, ", ".join(self._dependees), r, extra) 514 msg = "Nothing %sPROVIDES '%s' (but %s %sDEPENDS on or otherwise requires it)%s" % (r, self._item, ", ".join(self._dependees), r, extra)