[PATCH 5/9] Use correct device instance when updating selector w/ new device.
David Lehman
dlehman at redhat.com
Mon Aug 20 14:20:38 UTC 2012
---
pyanaconda/ui/gui/spokes/custom.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 45865f1..5c5fefb 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -590,7 +590,10 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
# update the selector with the new device and its size
selector._device = self.__storage.devicetree.getDeviceByID(max_id)
- selector.props.size = str(Size(spec="%f MB" % device.size)).upper()
+ selector.props.size = str(Size(spec="%f MB" % selector._device.size)).upper()
+
+ # TODO: if btrfs, also update sizes of other subvols' selectors
+
self._updateSpaceDisplay()
return
--
1.7.7.6
More information about the anaconda-patches
mailing list