http://bugzilla.novell.com/show_bug.cgi?id=537401
User schubi@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537401#c5
--- Comment #5 from Stefan Schubert 2009-09-09 00:49:50 MDT ---
I have checked my old code before refactoring and this works:
obj_tid.on_signal("Package") do |line1,line2,line3|
columns = line2.split ";"
update = Patch.new(:resolvable_id => columns[1],
:kind => line1,
:name => columns[0],
:arch => columns[2],
:repo => columns[3],
:summary => line3 )
patch_updates << update
finished = true
end
obj_tid.on_signal("Error") do |u1,u2|
finished = true
end
obj_tid.on_signal("Finished") do |u1,u2|
finished = true
end
obj_tid_with_iface.GetUpdates("NONE")
unless finished
@main = MainPkg.new
@main << system_bus
@main.run
end
Have a look to the finished flag. While the second call, the result is very
fast (without using libzypp) and the process does not go into mainloop. That
works. So the signal comes although the process has not gone into the mainloop.
I do not know who is caching here.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.