1 |
--- |
2 |
pym/_emerge/actions.py | 6 +++--- |
3 |
1 file changed, 3 insertions(+), 3 deletions(-) |
4 |
|
5 |
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py |
6 |
index 6704afc..5e8d5c5 100644 |
7 |
--- a/pym/_emerge/actions.py |
8 |
+++ b/pym/_emerge/actions.py |
9 |
@@ -2000,10 +2000,10 @@ def action_sync(emerge_config, trees=DeprecationWarning, |
10 |
syncer = SyncRepos(emerge_config) |
11 |
|
12 |
|
13 |
- retvals = syncer.auto_sync(options={'return-messages': False}) |
14 |
+ success = syncer.auto_sync(options={'return-messages': False}) |
15 |
|
16 |
- if retvals: |
17 |
- return retvals[0][1] |
18 |
+ if not success: |
19 |
+ return 1 |
20 |
return os.EX_OK |
21 |
|
22 |
|
23 |
-- |
24 |
2.10.2 |