From f2d5ded837c3bd2f2ec1f6f0f3cd8d312ca509b9 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 17 Dec 2007 14:51:44 -0500 Subject: 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 --- installmethod.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'installmethod.py') 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) -- cgit