summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-12-08 18:43:23 +0000
committerErik Troan <ewt@redhat.com>2000-12-08 18:43:23 +0000
commit791f649648560413e4a3f31cf6c50ee50e3a2c75 (patch)
tree9cc347e00a94fdea28b1b8619eedb70e3fcb1840 /image.py
parentd3f64b8761ddc9cd9686c9a6f42947d4545a9396 (diff)
downloadanaconda-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.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/image.py b/image.py
index b6bf55fb3..244524028 100644
--- a/image.py
+++ b/image.py
@@ -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):