[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-portage-dev
Subject:    [gentoo-portage-dev] [PATCH] emerge: check correctly for --sync success (bug 606588)
From:       Alexandru Elisei <alexandru.elisei () gmail ! com>
Date:       2017-01-20 17:46:57
Message-ID: CAB-4s4=fZvDuLQibkDWGeAfsTSNNQ+14FWXjhF4DuRh6oAJrVQ () mail ! gmail ! com
[Download RAW message or body]

---
 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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic