2009/11/24 Aleksey Lim <alsr...@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 _______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel