[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 14/14] Handle existing volumes without labels.
- From: David Cantrell <dcantrell redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH 14/14] Handle existing volumes without labels.
- Date: Sun, 1 Mar 2009 20:32:52 -1000
Existing volume may lack a label. If it's there, add it to the
list, otherwise just go with the defaults.
---
iw/partition_ui_helpers_gui.py | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
index ad7303e..947bfbb 100644
--- a/iw/partition_ui_helpers_gui.py
+++ b/iw/partition_ui_helpers_gui.py
@@ -86,16 +86,17 @@ def createMountPointCombo(request, excludeMountPoints=[]):
mntptlist = []
label = getattr(request.format, "label", None)
- if request.exists and label.startswith("/"):
- mntptlist.append(label)
- idx = 0
-
+ if label:
+ if request.exists and label.startswith("/"):
+ mntptlist.append(label)
+ idx = 0
+
for p in defaultMountPoints:
- if p in excludeMountPoints:
- continue
-
- if not p in mntptlist and (p[0] == "/"):
- mntptlist.append(p)
+ if p in excludeMountPoints:
+ continue
+
+ if not p in mntptlist and (p[0] == "/"):
+ mntptlist.append(p)
map(mountCombo.append_text, mntptlist)
--
1.6.1.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]