summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-01-17 22:49:50 +0000
committerJeremy Katz <katzj@redhat.com>2007-01-17 22:49:50 +0000
commitabb6ec58462064d9874945efb8215e1b6cd76d71 (patch)
tree2d2406b1c3ebc65db0beb28895083fe32df5e073 /iw
parent48cb0bc9f3e2d13813f325964793e0944eb6e549 (diff)
downloadanaconda-abb6ec58462064d9874945efb8215e1b6cd76d71.tar.gz
anaconda-abb6ec58462064d9874945efb8215e1b6cd76d71.tar.xz
anaconda-abb6ec58462064d9874945efb8215e1b6cd76d71.zip
2007-01-17 Jeremy Katz <katzj@redhat.com>
* iw/progress_gui.py (InstallProgressWindow.completePackage): Quick and dirty way of handling-non rpm installs. This needs to be reworked more completely * timezone.py (Timezone.__init__): Add a default in case the step is skipped * instdata.py (InstallData.write): Ensure that network is written out rather than counting on our backend to do so in its preinstall * fsset.py (FileSystemType.isKernelFS): Add a method to determine if we're an in-kernel pseudo-filesystem (PsudoFileSystem.isKernelFS): And implement it (FileSystemSet.umountFilesystems): Allow unmounting filesystems without turning off swap.
Diffstat (limited to 'iw')
-rw-r--r--iw/progress_gui.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/iw/progress_gui.py b/iw/progress_gui.py
index e4497ab5c..7e3827263 100644
--- a/iw/progress_gui.py
+++ b/iw/progress_gui.py
@@ -80,7 +80,7 @@ class InstallProgressWindow (InstallWindow):
self.progress.set_fraction (newval)
self.processEvents()
- def completePackage(self, header, timer):
+ def completePackage(self, header = None, timer = None, pct = None):
def formatTime(amt):
hours = amt / 60 / 60
amt = amt % (60 * 60)
@@ -90,6 +90,10 @@ class InstallProgressWindow (InstallWindow):
return "%01d:%02d:%02d" % (int(hours) ,int(min), int(secs))
+ if pct:
+ self.totalProgress.set_fraction(pct)
+ return
+
self.numComplete = self.numComplete + 1
self.sizeComplete = self.sizeComplete + (header[rpm.RPMTAG_SIZE]/1024)