aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-02-21 16:04:37 -0800
committerZac Medico <zmedico@gentoo.org>2020-02-21 16:06:07 -0800
commitd11bf32950bcf01773a38b3afbf6bb35ece051bc (patch)
tree9eb503debf68be56bb5d48dadc73f51eaad37dff /lib/_emerge
parenteinstalldocs: Fix test for DOCS being unset. (diff)
downloadportage-d11bf32950bcf01773a38b3afbf6bb35ece051bc.tar.gz
portage-d11bf32950bcf01773a38b3afbf6bb35ece051bc.tar.bz2
portage-d11bf32950bcf01773a38b3afbf6bb35ece051bc.zip
action_sync: display error message with --quiet
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/_emerge')
-rw-r--r--lib/_emerge/actions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/_emerge/actions.py b/lib/_emerge/actions.py
index 4bf9ce425..7a39d5ec7 100644
--- a/lib/_emerge/actions.py
+++ b/lib/_emerge/actions.py
@@ -2082,6 +2082,9 @@ def action_sync(emerge_config, trees=DeprecationWarning,
success, msgs = syncer.auto_sync(options=options)
if return_messages:
print_results(msgs)
+ elif msgs and not success:
+ writemsg_level("".join("%s\n" % (line,) for line in msgs),
+ level=logging.ERROR, noiselevel=-1)
return os.EX_OK if success else 1