aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2024-11-13 21:09:49 +0100
committerUlrich Müller <ulm@gentoo.org>2024-11-13 21:09:49 +0100
commit5af3344ced5dae1396b0d4d5e51481863621b2dc (patch)
tree850cfafc252501db690064d92993e16bd556b3a7
parentWarn about deprecated make.profile location (diff)
downloadeselect-5af3344ced5dae1396b0d4d5e51481863621b2dc.tar.gz
eselect-5af3344ced5dae1396b0d4d5e51481863621b2dc.tar.bz2
eselect-5af3344ced5dae1396b0d4d5e51481863621b2dc.zip
Fix repository path with nonempty ROOT in profile module
* modules/profile.eselect (get_repo_path): Prefix the portageq output with ROOT. Bug 942970. Bug: https://bugs.gentoo.org/942970 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--ChangeLog3
-rw-r--r--modules/profile.eselect5
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5764686..861ec10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2024-11-13 Ulrich Müller <ulm@gentoo.org>
+ * modules/profile.eselect (get_repo_path): Prefix the portageq
+ output with ROOT. Bug 942970.
+
* modules/profile.eselect (get_symlink_location): Warn about
deprecated /etc/make.profile location.
diff --git a/modules/profile.eselect b/modules/profile.eselect
index 8c74dd9..e6f34ac 100644
--- a/modules/profile.eselect
+++ b/modules/profile.eselect
@@ -40,7 +40,10 @@ get_repos() {
# get paths for a given list of repositories
get_repo_path() {
- portageq get_repo_path "${EROOT:-/}" "$@"
+ local path
+ portageq get_repo_path "${EROOT:-/}" "$@" \
+ | while read path; do printf "%s\n" "${ROOT}${path}"; done
+ [[ "${PIPESTATUS[*]}" = "0 0" ]]
}
# get a list of valid profiles