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-04-2012, 02:43 PM
David Lehman
 
Default Don't download filelists from yum repo as they aren't needed.

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

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 058cb64..b36410d 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -526,14 +526,9 @@ reposdir=%s
# on a per-repo basis, so we can then get some finer grained error
# handling and recovery.
log.debug("getting repo metadata for %s" % yumrepo.id)
- #log.debug("getting repo metadata for %s (%s)" % (yumrepo.id, yumrepo.urls))
with _yum_lock:
- del yumrepo.repoXML
try:
- yumrepo.repoXML
yumrepo.getPrimaryXML()
- yumrepo.getOtherXML()
- yumrepo.getFileListsXML()
except RepoError as e:
raise MetadataError(e.value)

@@ -566,13 +561,11 @@ reposdir=%s

# this will trigger retrieval of repomd.xml, which is small and yet
# gives us some assurance that the repo config is sane
- orig_mdpolicy = obj.mdpolicy
obj.mdpolicy = "meh"
try:
obj.repoXML
except RepoError as e:
raise MetadataError(e.value)
- obj.mdpolicy = orig_mdpolicy

# Adding a new repo means the cached packages and groups lists
# are out of date. Clear them out now so the next reference to
--
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-09-2012, 08:43 PM
David Lehman
 
Default Don't download filelists from yum repo as they aren't needed.

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

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 058cb64..b36410d 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -526,14 +526,9 @@ reposdir=%s
# on a per-repo basis, so we can then get some finer grained error
# handling and recovery.
log.debug("getting repo metadata for %s" % yumrepo.id)
- #log.debug("getting repo metadata for %s (%s)" % (yumrepo.id, yumrepo.urls))
with _yum_lock:
- del yumrepo.repoXML
try:
- yumrepo.repoXML
yumrepo.getPrimaryXML()
- yumrepo.getOtherXML()
- yumrepo.getFileListsXML()
except RepoError as e:
raise MetadataError(e.value)

@@ -566,13 +561,11 @@ reposdir=%s

# this will trigger retrieval of repomd.xml, which is small and yet
# gives us some assurance that the repo config is sane
- orig_mdpolicy = obj.mdpolicy
obj.mdpolicy = "meh"
try:
obj.repoXML
except RepoError as e:
raise MetadataError(e.value)
- obj.mdpolicy = orig_mdpolicy

# Adding a new repo means the cached packages and groups lists
# are out of date. Clear them out now so the next reference to
--
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 05:31 PM.

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