commit: 8dafaea39bf9bc9eb168e334837b6d2b7ee7d32d Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Tue Jun 11 14:39:25 2024 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Thu Jun 13 16:39:40 2024 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=8dafaea3
ebuild.profiles: Fix case where a parent path omits the repo identifier According "SPECIFIC FILE DESCRIPTIONS" in `man portage`, it is valid to have a parent path like `:path/to/profile` where the repo identifier is missing. This refers to a path in the current repo. Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> Closes: https://github.com/pkgcore/pkgcore/pull/435 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> src/pkgcore/ebuild/profiles.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pkgcore/ebuild/profiles.py b/src/pkgcore/ebuild/profiles.py index 384e41e22..fea1eacc7 100644 --- a/src/pkgcore/ebuild/profiles.py +++ b/src/pkgcore/ebuild/profiles.py @@ -254,6 +254,8 @@ class ProfileNode(metaclass=caching.WeakInstMeta): f"unknown repo {repo_id!r}" ) continue + else: + location = repo_config.location l.append( ( abspath(pjoin(location, "profiles", profile_path)),
