aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzesimir Nowak <knowak@microsoft.com>2022-12-14 12:52:25 +0100
committerFabian Groffen <grobian@gentoo.org>2022-12-15 10:02:33 +0100
commit9c67a37fc7709c9e314bc56ccdf7727bee02fc92 (patch)
treed6ff6ec3d508e9393ec2e1f740cfefa8533644bc
parentqmerge: set EBUILD_PHASE_FUNC (diff)
downloadportage-utils-9c67a37fc7709c9e314bc56ccdf7727bee02fc92.tar.gz
portage-utils-9c67a37fc7709c9e314bc56ccdf7727bee02fc92.tar.bz2
portage-utils-9c67a37fc7709c9e314bc56ccdf7727bee02fc92.zip
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@microsoft.com> Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 809a0852..f6a39f93 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;