FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 03-02-2012, 04:02 PM
David Lehman
 
Default Disable, but don't remove, yum default repos if a base repo was given.

---
pyanaconda/packaging/yumpayload.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index faf7959..e88766e 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -170,9 +170,11 @@ reposdir=/etc/yum.repos.d,/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/t
elif not isFinal and not repo.enabled:
log.info("excluding disabled repo %s for prerelease" % repo.id)
self.removeRepo(repo.id)
- elif self.data.method.method and repo.id not in self.repos:
- log.info("excluding repo %s" % repo.id)
- self._yum.disableRepo(repo.id)
+ elif self.data.method.method and
+ repo.id != BASE_REPO_NAME and
+ repo.id not in [r.name for r in self.data.repo.dataList()]:
+ log.info("disabling repo %s" % repo.id)
+ self.disableRepo(repo.id)

def _configureMethod(self, storage):
""" Configure the base repo. """
--
1.7.9.1

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

Thread Tools




All times are GMT. The time now is 09:24 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org