[PATCH] No longer copy over the CD/DVD repodata or repo config file (#512358).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These were mostly being copied over to help pirut so it could automatically
know to look at the installation media for more packages.  However, pirut
is dead and none of the other tools support this concept anymore.  Also,
most people don't have their CD/DVD mounted or handy most of the time.
---
 yuminstall.py |   18 +-----------------
 1 files changed, 1 insertions(+), 17 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index b247b52..b3d55f9 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1033,23 +1033,7 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
         fd.close()
 
     def complete(self, anaconda):
-        if anaconda.mediaDevice:
-            try:
-                shutil.copyfile("%s/media.repo" % self.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,))
-
-            try:
-                i = iniparse.ConfigParser()
-                i.read("%s/media.repo" % self.ayum.tree)
-                repo = i.sections()[0]
-                del i
-                shutil.copytree("%s/repodata" % self.ayum.tree,
-                                "%s/var/cache/yum/%s" %(anaconda.rootPath, repo))
-            except Exception, e:
-                log.debug("Error setting up media repository: %s" %(e,))
-        elif os.path.exists(self.ayum.tree) and os.path.ismount(self.ayum.tree):
+        if not anaconda.mediaDevice and os.path.ismount(self.ayum.tree):
             isys.umount(self.ayum.tree)
 
         anaconda.backend.removeInstallImage()
-- 
1.6.4.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux