commit: 6b50f39c3d45456b40f21ca85c6d57296c64c377
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 17 17:12:44 2018 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Apr 17 17:15:44 2018 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=6b50f39c
IndexedVardb: pass db to _pkg_str (bug 653372)
Fix an AttributeError when emerge --search contructs a Package instance
in order to check visibility of an installed package.
Fixes: bfe7892202b8 ("_pkg_str: add _db attribute (bug 640318)")
Bug: https://bugs.gentoo.org/653372
pym/portage/dbapi/IndexedVardb.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pym/portage/dbapi/IndexedVardb.py
b/pym/portage/dbapi/IndexedVardb.py
index b9466707d..e2910b27f 100644
--- a/pym/portage/dbapi/IndexedVardb.py
+++ b/pym/portage/dbapi/IndexedVardb.py
@@ -52,7 +52,7 @@ class IndexedVardb(object):
self._cp_map = cp_map = {}
for cpv in self._vardb._aux_cache["packages"]:
try:
- cpv = _pkg_str(cpv)
+ cpv = _pkg_str(cpv, db=self._vardb)
except InvalidData:
continue