commit:     768b9e920fe0919d87537665ae3ce88007630cc1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 17 13:03:53 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jan 18 18:04:25 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=768b9e92

sync: fix module_names enumeration

Fix module_names enumeration to consider all modules. Before, the first
module on the list was omitted ('cvs' in this case).

---
 pym/portage/sync/controller.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pym/portage/sync/controller.py b/pym/portage/sync/controller.py
index 9001298..3d217db 100644
--- a/pym/portage/sync/controller.py
+++ b/pym/portage/sync/controller.py
@@ -119,7 +119,7 @@ class SyncManager(object):
                self.callback = callback or self._sync_callback
                self.repo = repo
                self.exitcode = 1
-               if repo.sync_type in self.module_names[1:]:
+               if repo.sync_type in self.module_names:
                        tasks = 
[self.module_controller.get_class(repo.sync_type)]
                else:
                        msg = "\n%s: Sync module '%s' is not an installed/known 
type'\n" \

Reply via email to