bitbake/lib/bb/event.py: Remove duplicated ones from close matches
cover bitbake/lib/bb/event.py: Remove duplicated ones from close matches
The following changes since commit 925800570f9093cc8de90091008759998e5cd4f2:
bitbake: cooker/siggen: Empty siggen cache during parsing (2020-02-17 23:11:38 +0000)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib rbt/close
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=rbt/close
Robert Yang (1):
bitbake/lib/bb/event.py: Remove duplicated ones from close matches
bitbake/lib/bb/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.7.4
PATCH 1/1 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.
--- bitbake/lib/bb/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/event.py +1 -1
@@ -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)
Signature · 1 line
2.7.4