commit: 04bb5cc67c8c8d71ff66367a2b4becd0b20a5d8a Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Fri Jan 24 21:23:13 2025 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Fri Jan 24 21:25:25 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=04bb5cc6
getname: Handle None remotepkgs Bug: https://bugs.gentoo.org/948643 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> lib/portage/dbapi/bintree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/portage/dbapi/bintree.py b/lib/portage/dbapi/bintree.py index 812a7af8ef..9da7898569 100644 --- a/lib/portage/dbapi/bintree.py +++ b/lib/portage/dbapi/bintree.py @@ -2278,7 +2278,7 @@ class binarytree: path = self._pkg_paths.get(instance_key) if path is not None: filename = os.path.join(self.pkgdir, path) - elif instance_key in self._remotepkgs: + elif self._remotepkgs and instance_key in self._remotepkgs: remote_metadata = self._remotepkgs[instance_key] location = self.get_local_repo_location(cpv) if location: