summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-09-24 19:59:28 +0000
committerJeremy Katz <katzj@redhat.com>2007-09-24 19:59:28 +0000
commitd91acbce0025515466cd5648d046c91d79c31d97 (patch)
tree7cb9f92d7f85466635ff42d0007e2fe752cb2a73 /image.py
parent7db9f520cdb9c9eb968a994884797749709502b2 (diff)
downloadanaconda-d91acbce0025515466cd5648d046c91d79c31d97.tar.gz
anaconda-d91acbce0025515466cd5648d046c91d79c31d97.tar.xz
anaconda-d91acbce0025515466cd5648d046c91d79c31d97.zip
2007-09-24 Jeremy Katz <katzj@redhat.com>
* image.py (CdromInstallMethod.filesDone): Copy media.repo if it exists
Diffstat (limited to 'image.py')
-rw-r--r--image.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/image.py b/image.py
index 8aede97b4..74b3461f5 100644
--- a/image.py
+++ b/image.py
@@ -305,6 +305,11 @@ class CdromInstallMethod(ImageInstallMethod):
_("Unable to access the disc."))
def filesDone(self):
+ try:
+ shutil.copyfile("/mnt/source/media.repo", "%s/etc/yum.repos.d/%s-install-media.repo" %(self.rootPath, productName))
+ except Exception, e:
+ log.debug("Error copying media.repo: %s" %(e,))
+
# we're trying to unmount the CD here. if it fails, oh well,
# they'll reboot soon enough I guess :)
try: