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 > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 05-02-2012, 07:10 PM
David Lehman
 
Default We have to enable the rawhide repo if we're going to use it.

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

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index e625e31..a3a3b2e 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -323,6 +323,9 @@ reposdir=%s

if BASE_REPO_NAME not in self._yum.repos.repos.keys():
log.info("using default repos from local yum configuration")
+ if self._yum.conf.yumvar['releasever'] == "rawhide" and
+ "rawhide" in self.repos:
+ self.enableRepo("rawhide")

# set up addon repos
# FIXME: driverdisk support
@@ -343,8 +346,9 @@ reposdir=%s

- always remove
- source, debuginfo
- - remove if isFinal
+ - disable if isFinal
- rawhide, development
+ - disable all other built-in repos if rawhide is enabled
- remove any repo when not isFinal and repo not enabled
- if a base repo is defined, disable any repo not defined by
the user that is not the base repo
@@ -358,9 +362,12 @@ reposdir=%s
if "-source" in repo.id or "-debuginfo" in repo.id:
self._removeYumRepo(repo.id)
elif isFinal and ("rawhide" in repo.id or "development" in repo.id):
+ # XXX the "development" part seems a bit heavy handed
self._removeYumRepo(repo.id)
- elif not isFinal and not repo.enabled:
- self._removeYumRepo(repo.id)
+ elif self._yum.conf.yumvar['releasever'] == "rawhide" and
+ self._yum.repos.getRepo("rawhide").enabled and
+ repo.id != "rawhide":
+ self.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()]:
--
1.7.7.6

_______________________________________________
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 04:46 PM.

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