Three patches with one goal -- fix the problem with Anaconda segfaulting at the
end of the installation (Configuring installed system) as described in the bug
#928287 and its duplicates).
PATCH 1/3 just creates a constant for magic value used as DBus timeout.
PATCH 2/3 adds a module with thread and main loop safe operations with DBus. It
may seem as a lot of code, but is really just a few lines of code and a lot of
docstring lines. I've tested if it fixes the segfault and it works for me. Other
people CC'ed in the bug #928287 will hopefully test it too with the updates.img
I've provided.
PATCH 3/3 modifies the LocaledWrapper to use the new module because it was
LocaledWrapper causing the segfaults (indirectly).
I'm afraid we may step into the same sh*t again with the code in nm.py, but I
try to be optimistic and don't modify the code there in the same way for now.
Vratislav Podzimek (3):
Define a DEFAULT_DBUS_TIMEOUT constant and use it
Add module providing safe DBus operations
Modify LocaledWrapper to use our safe_dbus module (#928287)
pyanaconda/constants.py | 3 ++
pyanaconda/keyboard.py | 96 ++++++++++++++++++------------------
pyanaconda/nm.py | 16 +++---
pyanaconda/safe_dbus.py | 126 ++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 186 insertions(+), 55 deletions(-)
create mode 100644 pyanaconda/safe_dbus.py
--
1.7.11.7