diff options
author | Erik Troan <ewt@redhat.com> | 2000-12-08 18:43:23 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-12-08 18:43:23 +0000 |
commit | 791f649648560413e4a3f31cf6c50ee50e3a2c75 (patch) | |
tree | 9cc347e00a94fdea28b1b8619eedb70e3fcb1840 /image.py | |
parent | d3f64b8761ddc9cd9686c9a6f42947d4545a9396 (diff) | |
download | anaconda-791f649648560413e4a3f31cf6c50ee50e3a2c75.tar.gz anaconda-791f649648560413e4a3f31cf6c50ee50e3a2c75.tar.xz anaconda-791f649648560413e4a3f31cf6c50ee50e3a2c75.zip |
use separate timer for install which can be stopped and started
Diffstat (limited to 'image.py')
-rw-r--r-- | image.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -16,7 +16,7 @@ class ImageInstallMethod(InstallMethod): def readComps(self, hdlist): return ComponentSet(self.tree + '/RedHat/base/comps', hdlist) - def getFilename(self, h): + def getFilename(self, h, timer): return self.tree + "/RedHat/RPMS/" + h[1000000] def readHeaders(self): @@ -63,11 +63,13 @@ class CdromInstallMethod(ImageInstallMethod): isys.makeDevInode("loop0", "/tmp/loop") isys.lochangefd("/tmp/loop", self.loopbackFile) - def getFilename(self, h): + def getFilename(self, h, timer): if h[1000002] == None: log ("header for %s has no disc location tag, assuming it's" "on the current CD", h[1000000]) elif h[1000002] != self.currentDisc: + timer.stop() + self.currentDisc = h[1000002] isys.umount("/mnt/source") @@ -116,6 +118,8 @@ class CdromInstallMethod(ImageInstallMethod): self.messageWindow(_("Error"), _("The CDROM could not be mounted.")) + timer.start() + return self.tree + "/RedHat/RPMS/" + h[1000000] def filesDone(self): |