diff options
author | 2023-04-21 21:10:23 +0200 | |
---|---|---|
committer | 2023-04-21 21:10:23 +0200 | |
commit | b9592db1c04cafcdfaaff8f44ab2d6fc7d6dd5fa (patch) | |
tree | 922c365e56b23137674e2c5763f48403c46c5397 | |
parent | libq/tree: add commetns on file checks (research for bug #898194) (diff) | |
download | portage-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.c | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -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; } } |