[PATCH 14/14] Handle existing volumes without labels.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux