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

Thomas Leonard talex5 at gmail.com
Wed Nov 25 05:27:57 EST 2009


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.


-- 
Dr Thomas Leonard		ROX desktop / Zero Install
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1


More information about the Sugar-devel mailing list