aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2024-06-11 15:39:25 +0100
committerArthur Zamarin <arthurzam@gentoo.org>2024-06-13 19:39:40 +0300
commit8dafaea39bf9bc9eb168e334837b6d2b7ee7d32d (patch)
tree77a5aab0842de78bf12c2847dda259c833346b5b
parentstart work on 0.12.28 (diff)
downloadpkgcore-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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkgcore/ebuild/profiles.py b/src/pkgcore/ebuild/profiles.py
index 384e41e2..fea1eacc 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)),