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 > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 05-11-2012, 05:32 PM
David Lehman
 
Default Add notes to things that should be done in yum instead of YumPayload.

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

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 87696f7..6202a3e 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -194,6 +194,7 @@ reposdir=%s

open("/tmp/anaconda-yum.conf", "w").write(buf)

+ # YUMFIXME: yum should allow a cache dir outside of the installroot
def _yumCacheDirHack(self):
# This is what it takes to get yum to use a cache dir outside the
# install root. We do this so we don't have to re-gather repo meta-
@@ -268,6 +269,9 @@ reposdir=%s
log.debug("installation yum config repos: %s"
% ",".join([r.id for r in self._yum.repos.listEnabled()]))

+ # YUMFIXME: there should be a way to reset package sacks without all this
+ # knowledge of the yum internals or, better yet, some convenience
+ # functions for multi-threaded applications
def release(self):
from yum.packageSack import MetaSack
log.debug("deleting package sacks")
@@ -576,6 +580,7 @@ reposdir=%s

# this will trigger retrieval of repomd.xml, which is small and yet
# gives us some assurance that the repo config is sane
+ # YUMFIXME: yum's instant policy doesn't work as advertised
obj.mdpolicy = "meh"
try:
obj.repoXML
--
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:27 PM.

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