diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2020-02-18 18:48:02 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-19 11:25:32 +0000 |
commit | 5612192cec9f467e2ab5a86482cb34876d198bc6 (patch) | |
tree | 0eb699782f1120421a6d656457a82092397a814b | |
parent | 7af80cd1dd577b05d39a3cc5d5c547a2549e39df (diff) | |
download | bitbake-5612192cec9f467e2ab5a86482cb34876d198bc6.tar.gz |
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.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/event.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py index 5cfbf3612..d1359f010 100644 --- a/lib/bb/event.py +++ b/lib/bb/event.py @@ -508,7 +508,7 @@ class NoProvider(Event): extra = '' if not self._reasons: if self._close_matches: - extra = ". Close matches:\n %s" % '\n '.join(self._close_matches) + extra = ". Close matches:\n %s" % '\n '.join(sorted(set(self._close_matches))) if self._dependees: msg = "Nothing %sPROVIDES '%s' (but %s %sDEPENDS on or otherwise requires it)%s" % (r, self._item, ", ".join(self._dependees), r, extra) |