aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2020-08-02 09:37:51 +0200
committerFabian Groffen <grobian@gentoo.org>2020-08-02 09:37:51 +0200
commit61ac8ae9168b7262a6f68a07da312659181647a0 (patch)
tree28c9d29fb7072750a3437362131b8c2bdedcf4ed
parentqlop: fix crash when encountering a long option with -E -v (diff)
downloadportage-utils-61ac8ae9168b7262a6f68a07da312659181647a0.tar.gz
portage-utils-61ac8ae9168b7262a6f68a07da312659181647a0.tar.bz2
portage-utils-61ac8ae9168b7262a6f68a07da312659181647a0.zip
read_portage_profile: adapt warning to point to which profile
When we fail to resolve a repo match, give the user a better hint by pointing to the profile we were reading. Bug: https://bugs.gentoo.org/735134 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index d2a452ca..c8b04297 100644
--- a/main.c
+++ b/main.c
@@ -563,7 +563,8 @@ read_portage_profile(const char *profile, env_vars vars[], set *masks)
repo_name = NULL;
}
if (repo_name == NULL) {
- warn("ignoring parent with unknown repo in profile: %s", s);
+ warn("ignoring parent with unknown repo in profile %s: %s",
+ profile, s);
continue;
}
} else {