30 Aug
2011
30 Aug
'11
13:57
* Zhang, Qiang Z
Hi Klaus,
I have tried call back feature in libzypp-bindings. It works, but Segmentation fault occurs.
Ok, found it. 1. removal_progress must return True or False False means: abort the current action, True means continue 2. removal_problem must be defined in CommitReceiver to catch errors removal_problem must return "retry", "abort" or "ignore". The segfault appears if either "abort" or an unknown response is returned. Find a fixed callbacks.py attached. Enjoy, Klaus --- SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany