diff options
author | Chris Lumens <clumens@redhat.com> | 2006-05-08 18:50:51 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-05-08 18:50:51 +0000 |
commit | 3c53223e2af7ec1d4f6aedf68753714228dd6a06 (patch) | |
tree | dd9aa9b0b4b5a955c10441714f36d018e7e09d47 /image.py | |
parent | e0687e594988ec67c9f827fa7df17d198ff650b3 (diff) | |
download | anaconda-3c53223e2af7ec1d4f6aedf68753714228dd6a06.tar.gz anaconda-3c53223e2af7ec1d4f6aedf68753714228dd6a06.tar.xz anaconda-3c53223e2af7ec1d4f6aedf68753714228dd6a06.zip |
Kill getRPMFilename.
Diffstat (limited to 'image.py')
-rw-r--r-- | image.py | 48 |
1 files changed, 0 insertions, 48 deletions
@@ -177,47 +177,6 @@ class CdromInstallMethod(ImageInstallMethod): def getFilename(self, filename, callback=None, destdir=None, retry=1): return self.tree + "/" + filename - def getRPMFilename(self, filename, mediano, timer, callback=None): - if mediano == 0: - log.warning("header for %s has no disc location tag, assuming it's" - "on the current CD" %(filename,)) - elif mediano not in self.currentMedia: - timer.stop() - self.switchMedia(mediano, filename) - timer.start() - - # if we haven't read a timestamp yet, let's try to get one - if (self.timestamp is None and - os.access("/mnt/source/.discinfo", os.R_OK)): - try: - f = open("/mnt/source/.discinfo") - self.timestamp = f.readline().strip() - f.close() - except: - pass - - tmppath = self.getTempPath() - tries = 0 - # FIXME: should retry a few times then prompt for new cd - while tries < 5: - try: - shutil.copy("%s/%s/RPMS/%s" % (self.tree, productPath, - filename), - tmppath + filename) - except IOError, (errnum, msg): - log.critical("IOError %s occurred copying %s: %s", - errnum, filename, str(msg)) - time.sleep(5) - else: - break - tries = tries + 1 - - if tries >= 5: - raise FileCopyException - - return tmppath + filename - - def switchMedia(self, mediano, filename=""): log.info("switching from CD %s to %s for %s" %(self.currentMedia, mediano, filename)) if os.access("/mnt/source/.discinfo", os.R_OK): @@ -394,9 +353,6 @@ class NfsInstallMethod(ImageInstallMethod): self.splitmethod = False self.currentMedia = [] - def getRPMFilename(self, filename, mediano, timer, callback=None): - return "%s/%s/RPMS/%s" % (self.tree, productPath, filename) - def getDiscNums(line): # get the disc numbers for this disc nums = line.split(",") @@ -494,10 +450,6 @@ class NfsIsoInstallMethod(NfsInstallMethod): log.info("switching from iso %s to %s for %s" %(self.currentMedia, mediano, filename)) self.umountImage() self.mountImage(mediano) - - def getRPMFilename(self, filename, mediano, timer, callback=None): - self.switchMedia(mediano, filename=filename) - return self.getFilename("%s/RPMS/%s" % (productPath, filename)) def umountImage(self): if self.currentMedia: |