[Sugar-devel] [Zero-install-devel] 0depend feature request

Aleksey Lim alsroot at member.fsf.org
Wed Nov 25 10:56:29 EST 2009


On Wed, Nov 25, 2009 at 10:27:57AM +0000, Thomas Leonard wrote:
> 2009/11/24 Aleksey Lim <alsroot at member.fsf.org>:
> [...]
> > I've just tried simple example[1] with simple feed[2] in system w/o
> > any 0install remains and it fails for the first time[3] but runs ok for 2nd.
> >
> > I missed something in example code or its a unpredictable behaviour
> > (since [3] cailms for missed ROX-Lib dependensy but
> > solve_and_download_impls() should make all downloads)?
> >
> > [1] http://pastebin.be/22131
> > [2] http://pastebin.be/22132
> > [3] http://pastebin.be/22133
> 
> An async task needs to be a Python generator, which means it needs to
> include a "yield" statement somewhere (even if it's never called).
> 
> Normally key confirmation has to be async because it has to wait for
> the key information to arrive and it has to wait for the user to
> confirm.
> 
> I'll update handler.py so that it doesn't need to be async, but
> meanwhile just putting yield at the end will fix the problem.

thanks, I added yield to confirm_import_feed() and it works fine

-- 
Aleksey


More information about the Sugar-devel mailing list