[PATCH] If the full device path is given in repo=hd:, still select it in the UI (#980479).

Chris Lumens clumens at redhat.com
Thu Sep 26 15:30:16 UTC 2013


---
 pyanaconda/ui/gui/spokes/source.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index 869bba2..20fb331 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -650,7 +650,7 @@ class SourceSpoke(NormalSpoke):
                          "label" : dev.format.label or dev.format.uuid or ""
                        }
             store.append([dev, "%(model)s %(path)s (%(size)s MB) %(format)s %(label)s" % dev_info])
-            if self.data.method.method == "harddrive" and dev.name == self.data.method.partition:
+            if self.data.method.method == "harddrive" and self.data.method.partition in [dev.path, dev.name]:
                 active = idx
             added = True
             idx += 1
-- 
1.8.1.2



More information about the anaconda-patches mailing list