summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-07-31 00:14:56 +0000
committerJeremy Katz <katzj@redhat.com>2003-07-31 00:14:56 +0000
commit831930c4aaa63d029d48573b33a7c98586ede6ba (patch)
tree19437293bb2948338f9be020f43690c1afa780a9 /image.py
parentb1d546977dbe8a2b7cb059ef834f186f19a2311f (diff)
downloadanaconda-831930c4aaa63d029d48573b33a7c98586ede6ba.tar.gz
anaconda-831930c4aaa63d029d48573b33a7c98586ede6ba.tar.xz
anaconda-831930c4aaa63d029d48573b33a7c98586ede6ba.zip
merge from taroon branch to head
Diffstat (limited to 'image.py')
-rw-r--r--image.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/image.py b/image.py
index 4115ee3cc..881971bdd 100644
--- a/image.py
+++ b/image.py
@@ -39,8 +39,10 @@ class ImageInstallMethod(InstallMethod):
return self.tree + "/" + filename
def getRPMFilename(self, h, timer, callback=None):
+ if self.currentIso is not None and self.currentIso != h[1000002]:
+ log("switching from iso %s to %s" %(self.currentIso, h[1000002]))
+ self.currentIso = h[1000002]
return self.getFilename("/RedHat/RPMS/" + h[1000000], callback=callback)
-
def readHeaders(self):
if not os.access(self.tree + "/RedHat/base/hdlist", os.R_OK):
raise FileCopyException
@@ -66,6 +68,7 @@ class ImageInstallMethod(InstallMethod):
def __init__(self, tree, rootPath):
InstallMethod.__init__(self, rootPath)
self.tree = tree
+ self.currentIso = None
class CdromInstallMethod(ImageInstallMethod):
@@ -133,6 +136,7 @@ class CdromInstallMethod(ImageInstallMethod):
"on the current CD", h[1000000])
elif h[1000002] not in self.currentDisc:
timer.stop()
+ log("switching from iso %s to %s" %(self.currentDisc, h[1000002]))
if os.access("/mnt/source/.discinfo", os.R_OK):
f = open("/mnt/source/.discinfo")
@@ -419,6 +423,7 @@ class NfsIsoInstallMethod(NfsInstallMethod):
def getRPMFilename(self, h, timer, callback=None):
if self.imageMounted != h[1000002]:
+ log("switching from iso %s to %s" %(self.imageMounted, h[1000002]))
self.umountImage()
self.mountImage(h[1000002])