[Fedora-livecd-list] [PATCH] delete repos from the default config, don't just disable them

Jeremy Katz katzj at redhat.com
Tue Mar 20 15:21:41 UTC 2007


This avoids problems with reusing repoids.

---
 creator/livecd-creator |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/creator/livecd-creator b/creator/livecd-creator
index 77a61be..f34abb1 100755
--- a/creator/livecd-creator
+++ b/creator/livecd-creator
@@ -180,8 +180,8 @@ class LiveCDYum(yum.YumBase):
 
         self.conf.cachedir = "/var/cache/yum"
 
-        # disable the default repos and just enable ours
-        map(lambda x: x.disable(), self.repos.listEnabled())
+        # don't look at the default repos from the host config
+        map(lambda x: self.repos.delete(x), self.repos.repos.keys())
 
     def reset(self):
         self.closeRpmDB()
-- 
1.5.0.2




More information about the Fedora-livecd-list mailing list