diff options
author | Jeremy Katz <katzj@redhat.com> | 2007-09-24 19:59:28 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2007-09-24 19:59:28 +0000 |
commit | d91acbce0025515466cd5648d046c91d79c31d97 (patch) | |
tree | 7cb9f92d7f85466635ff42d0007e2fe752cb2a73 /image.py | |
parent | 7db9f520cdb9c9eb968a994884797749709502b2 (diff) | |
download | anaconda-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.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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: |