diff options
author | 2024-06-11 15:39:25 +0100 | |
---|---|---|
committer | 2024-06-13 19:39:40 +0300 | |
commit | 8dafaea39bf9bc9eb168e334837b6d2b7ee7d32d (patch) | |
tree | 77a5aab0842de78bf12c2847dda259c833346b5b | |
parent | start work on 0.12.28 (diff) | |
download | pkgcore-8dafaea39bf9bc9eb168e334837b6d2b7ee7d32d.tar.gz pkgcore-8dafaea39bf9bc9eb168e334837b6d2b7ee7d32d.tar.bz2 pkgcore-8dafaea39bf9bc9eb168e334837b6d2b7ee7d32d.zip |
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@gentoo.org>
Closes: https://github.com/pkgcore/pkgcore/pull/435
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | src/pkgcore/ebuild/profiles.py | 2 |
1 files changed, 2 insertions, 0 deletions
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)), |