aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2023-04-21 21:10:23 +0200
committerFabian Groffen <grobian@gentoo.org>2023-04-21 21:10:23 +0200
commitb9592db1c04cafcdfaaff8f44ab2d6fc7d6dd5fa (patch)
tree922c365e56b23137674e2c5763f48403c46c5397
parentlibq/tree: add commetns on file checks (research for bug #898194) (diff)
downloadportage-utils-b9592db1c04cafcdfaaff8f44ab2d6fc7d6dd5fa.tar.gz
portage-utils-b9592db1c04cafcdfaaff8f44ab2d6fc7d6dd5fa.tar.bz2
portage-utils-b9592db1c04cafcdfaaff8f44ab2d6fc7d6dd5fa.zip
main: silence repo warnings when quiet is setv0.96
Bug: https://bugs.gentoo.org/735134 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--main.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/main.c b/main.c
index 111d7ec..6ebb9e2 100644
--- a/main.c
+++ b/main.c
@@ -705,10 +705,13 @@ read_portage_profile(const char *profile, env_vars vars[], set *masks)
/* empty repo name means a repo where the profile is */
const char* current_overlay = overlay_from_path (profile);
if (current_overlay == NULL) {
- /* bring back the colon to see the ignored parent line */
+ /* bring back the colon to see the ignored
+ * parent line */
*(--p) = ':';
- warn("could not figure out current repo of profile %s, ignoring parent %s",
- profile, s);
+ if (!quiet)
+ warn("could not figure out current repo "
+ "of profile %s, ignoring parent %s",
+ profile, s);
continue;
}
snprintf(profile_file, sizeof(profile_file),
@@ -726,10 +729,12 @@ 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 */
+ /* bring back the colon to see the ignored
+ * parent line */
*(--p) = ':';
- warn("ignoring parent with unknown repo in profile %s: %s",
- profile, s);
+ if (!quiet)
+ warn("ignoring parent with unknown repo "
+ "in profile %s: %s", profile, s);
continue;
}
}