commit: 9c67a37fc7709c9e314bc56ccdf7727bee02fc92
Author: Krzesimir Nowak <knowak <AT> microsoft <DOT> com>
AuthorDate: Wed Dec 14 11:52:25 2022 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Dec 15 09:02:33 2022 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=9c67a37f
main: Print the ignored parent line in warning
If repo name in the parent line was empty, nothing was printed.
Signed-off-by: Krzesimir Nowak <knowak <AT> microsoft.com>
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/main.c b/main.c
index 809a085..f6a39f9 100644
--- a/main.c
+++ b/main.c
@@ -646,6 +646,8 @@ read_portage_profile(const char *profile, env_vars vars[],
set *masks)
repo_name = NULL;
}
if (repo_name == NULL) {
+ /* bring back the colon to see the
ignored parent line */
+ *(--p) = ':';
warn("ignoring parent with unknown repo
in profile %s: %s",
profile, s);
continue;