summaryrefslogtreecommitdiffstats
path: root/installmethod.py
diff options
context:
space:
mode:
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)