aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_emerge/actions.py')
-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