[PATCH 3/8] Don't set mountpoints of "(null)" in mountpoint selectors.
David Lehman
dlehman at redhat.com
Tue Oct 9 22:24:00 UTC 2012
---
pyanaconda/ui/gui/spokes/custom.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 15d01a9..2c9df36 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -996,7 +996,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
# you can't change the type of an existing device, so we
# don't need to concern ourselves with adding a new
# selector to the new page
- selector.props.mountpoint = mountpoint
+ selector.props.mountpoint = (mountpoint or
+ selector._device.format.name)
selector.props.name = (self._mountpointName(mountpoint) or
selector._device.format.name)
@@ -1112,7 +1113,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
self.window.show_all()
else:
if old_mountpoint:
- selector.props.mountpoint = mountpoint
+ selector.props.mountpoint = (mountpoint or
+ selector._device.format.name)
selector.props.name = (self._mountpointName(mountpoint)
or selector._device.format.name)
else:
--
1.7.7.6
More information about the anaconda-patches
mailing list