Projects
Kolab:16:TestingLinked
pykolab
0005-cli-kolab-sync-now-properly-creates-mailbo...
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0005-cli-kolab-sync-now-properly-creates-mailboxes-3975.patch of Package pykolab (Revision 1)
Currently displaying revision
1
,
Show latest
From a6984e9e29a3cd6beca7f717ad3484e846358fbc Mon Sep 17 00:00:00 2001 From: Timotheus Pokorra <tp@tbits.net> Date: Fri, 29 May 2015 14:52:56 +0200 Subject: [PATCH 5/7] cli: kolab sync now properly creates mailboxes (#3975) value of entry was not assigned properly. and we need to wait for the creation to finish --- pykolab/cli/cmd_sync.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pykolab/cli/cmd_sync.py b/pykolab/cli/cmd_sync.py index 3e2191a..b9c6c9e 100644 --- a/pykolab/cli/cmd_sync.py +++ b/pykolab/cli/cmd_sync.py @@ -100,7 +100,8 @@ def queue_add(*args, **kw): global pool for dn, entry in kw['entry']: entry['dn'] = dn - pool.apply_async(_synchronize, (), dict(**entry)) + r = pool.apply_async(_synchronize, (), dict(**entry)) + r.wait() def worker_process(*args, **kw): pass @@ -108,7 +109,7 @@ def worker_process(*args, **kw): def _synchronize(*args, **kw): log.info(_("Worker process %s handling %s") % (multiprocessing.current_process().name, kw['dn'])) - entry = utils.normalize(entry) + entry = utils.normalize(kw) if not entry.has_key('mail'): return -- 1.9.3
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.