summaryrefslogtreecommitdiffstats
path: root/installmethod.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-12-17 14:51:44 -0500
committerJeremy Katz <katzj@redhat.com>2007-12-17 14:52:02 -0500
commitf2d5ded837c3bd2f2ec1f6f0f3cd8d312ca509b9 (patch)
treea49a05629d56e92f4f1561c938250dc3a0da04c6 /installmethod.py
parentdd5f09536eb6d67eebd637fd0f7750cc22912d3e (diff)
downloadanaconda-f2d5ded837c3bd2f2ec1f6f0f3cd8d312ca509b9.tar.gz
anaconda-f2d5ded837c3bd2f2ec1f6f0f3cd8d312ca509b9.tar.xz
anaconda-f2d5ded837c3bd2f2ec1f6f0f3cd8d312ca509b9.zip
Make doMethodComplete not depend on the yum backend
Move backend specific bits of method complete into a backend.complete() method to avoid tracebacks with installs on other backends
Diffstat (limited to 'installmethod.py')
-rw-r--r--installmethod.py18
1 files changed, 1 insertions, 17 deletions
diff --git a/installmethod.py b/installmethod.py
index 3d6d2f8af..77f4a39e3 100644
--- a/installmethod.py
+++ b/installmethod.py
@@ -27,23 +27,7 @@ log = logging.getLogger("anaconda")
import isys, product
def doMethodComplete(anaconda):
- try:
- isys.umount(anaconda.backend.ayum.tree)
- except Exception:
- pass
-
- if anaconda.mediaDevice:
- try:
- shutil.copyfile("%s/media.repo" % anaconda.backend.ayum.tree,
- "%s/etc/yum.repos.d/%s-install-media.repo" %(anaconda.rootPath, productName))
- except Exception, e:
- log.debug("Error copying media.repo: %s" %(e,))
-
- if anaconda.backend.ayum._loopbackFile and (anaconda.mediaDevice or anaconda.backend.ayum.isodir):
- try:
- os.unlink(anaconda.backend.ayum._loopbackFile)
- except SystemError:
- pass
+ anaconda.backend.complete(anaconda)
if not anaconda.isKickstart and anaconda.mediaDevice:
isys.ejectCdrom(anaconda.mediaDevice)