summaryrefslogtreecommitdiffstats
path: root/upgrade.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-11-05 19:50:14 +0000
committerJeremy Katz <katzj@redhat.com>2002-11-05 19:50:14 +0000
commitec2793677080cfc40a9d9ee0f477d1611723d11d (patch)
tree43239230b358a00d2f536270cc96aea8e0c996c6 /upgrade.py
parent2072ef40b48c36ef346786959953c079f61ce25e (diff)
downloadanaconda-ec2793677080cfc40a9d9ee0f477d1611723d11d.tar.gz
anaconda-ec2793677080cfc40a9d9ee0f477d1611723d11d.tar.xz
anaconda-ec2793677080cfc40a9d9ee0f477d1611723d11d.zip
need to commit these bits too
Diffstat (limited to 'upgrade.py')
-rw-r--r--upgrade.py26
1 files changed, 20 insertions, 6 deletions
diff --git a/upgrade.py b/upgrade.py
index b5a8ec4d4..3ab6cd514 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -31,22 +31,36 @@ from constants import *
from rhpl.log import log
from rhpl.translate import _
-def findRootParts(intf, id, dir, chroot):
+def findRootParts(intf, id, dispatch, dir, chroot):
if dir == DISPATCH_BACK:
return
- parts = findExistingRoots(intf, id, chroot)
- id.upgradeRoot = parts
+ if id.rootParts is None:
+ id.rootParts = findExistingRoots(intf, id, chroot)
+
+ id.upgradeRoot = []
+ for (dev, fs, meta) in id.rootParts:
+ id.upgradeRoot.append( (dev, fs) )
+
+ if id.rootParts is not None:
+ dispatch.skipStep("findinstall", skip = 0)
+ else:
+ dispatch.skipStep("findinstall", skip = 1)
def findExistingRoots(intf, id, chroot):
- if not flags.setupFilesystems: return [(chroot, 'ext2')]
+ if not flags.setupFilesystems: return [(chroot, 'ext2', "")]
diskset = partedUtils.DiskSet()
diskset.openDevices()
- win = intf.waitWindow(_("Searching"),
- _("Searching for %s installations...") % (productName,))
+ win = intf.progressWindow(_("Searching"),
+ _("Searching for %s installations...") %
+ (productName,), 5)
rootparts = diskset.findExistingRootPartitions(intf, chroot)
+ for i in range(1, 6):
+ time.sleep(1)
+ win.set(i)
+
win.pop()
return rootparts