commit: d11bf32950bcf01773a38b3afbf6bb35ece051bc
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 22 00:04:37 2020 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sat Feb 22 00:06:07 2020 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=d11bf329
action_sync: display error message with --quiet
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
lib/_emerge/actions.py | 3 +++
1 file changed, 3 insertions(+)
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