commit: 63287ed70ff2fc7c6f0d97e168c30d148d054d5d Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Sat Nov 1 19:38:53 2025 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Sat Nov 1 19:48:50 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=63287ed7
bintree: fix UnboundLocalError for url when using cached index Bug: https://bugs.gentoo.org/965453 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> lib/portage/dbapi/bintree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/portage/dbapi/bintree.py b/lib/portage/dbapi/bintree.py index 43611bf0e6..ba3dc29999 100644 --- a/lib/portage/dbapi/bintree.py +++ b/lib/portage/dbapi/bintree.py @@ -1377,6 +1377,7 @@ class binarytree: for repo in reversed(list(self._binrepos_conf.values())): binrepo_name = repo.name or repo.name_fallback base_url = repo.sync_uri + pkgindex_uri = base_url.rstrip("/") + "/Packages" parsed_url = urlparse(base_url) host = parsed_url.hostname or "" port = parsed_url.port @@ -1755,7 +1756,7 @@ class binarytree: d["CPV"] = cpv d["BASE_URI"] = remote_base_uri - d["PKGINDEX_URI"] = url + d["PKGINDEX_URI"] = pkgindex_uri # FETCHCOMMAND and RESUMECOMMAND may be specified # by binrepos.conf, and otherwise ensure that they # do not propagate from the Packages index since
