---
 pym/_emerge/actions.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index 6704afc..5e8d5c5 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -2000,10 +2000,10 @@ def action_sync(emerge_config, trees=DeprecationWarning,
        syncer = SyncRepos(emerge_config)


-       retvals = syncer.auto_sync(options={'return-messages': False})
+       success = syncer.auto_sync(options={'return-messages': False})

-       if retvals:
-               return retvals[0][1]
+       if not success:
+               return 1
        return os.EX_OK


-- 
2.10.2

Reply via email to