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

[PATCH] Base install/upgrade default on whether any candidates were found (#590505).



---
 pyanaconda/iw/examine_gui.py |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/pyanaconda/iw/examine_gui.py b/pyanaconda/iw/examine_gui.py
index 1b8fbbf..d0aea3e 100644
--- a/pyanaconda/iw/examine_gui.py
+++ b/pyanaconda/iw/examine_gui.py
@@ -85,13 +85,6 @@ class UpgradeExamineWindow (InstallWindow):
         global seenExamineScreen
         self.anaconda = anaconda
 
-        if not seenExamineScreen:
-	    # this is the first time we've entered this screen
-	    self.doupgrade = False
-            seenExamineScreen = True
-	else:
-	    self.doupgrade = self.anaconda.upgrade
-
         # we might get here after storage reset that obsoleted
         # root device objects we had found
         if not self.anaconda.rootParts:
@@ -101,6 +94,13 @@ class UpgradeExamineWindow (InstallWindow):
 
         self.parts = self.anaconda.rootParts
 
+        if not seenExamineScreen:
+	    # this is the first time we've entered this screen
+	    self.doupgrade = self.anaconda.upgrade or self.parts
+            seenExamineScreen = True
+	else:
+	    self.doupgrade = self.anaconda.upgrade
+
         vbox = gtk.VBox (False, 12)
 	vbox.set_border_width (8)
 
-- 
1.7.1.1


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