[oe-commits] [bitbake] 01/03: bitbake/lib/bb/event.py: Remove duplicated ones from close matches
git at git.openembedded.org
git at git.openembedded.org
Tue Feb 18 23:57:29 UTC 2020
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit db6dc22c7e755cd495f9c7909e65344f17c21999
Author: Robert Yang <liezhi.yang at windriver.com>
AuthorDate: Tue Feb 18 18:48:02 2020 +0800
bitbake/lib/bb/event.py: Remove duplicated ones 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 at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/event.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 5cfbf36..d1359f0 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)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list