[yum-git] yumcommands.py

James Antill james at linux.duke.edu
Fri Jan 25 04:25:02 UTC 2008


 yumcommands.py |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 0511e45f2478068d5489776cbdd0c5cad3890f29
Author: James Antill <james at and.org>
Date:   Thu Jan 24 23:24:59 2008 -0500

    Add back in the populateSack() calls to makecache, needs more work to remove

diff --git a/yumcommands.py b/yumcommands.py
index 7286f04..29943b4 100644
--- a/yumcommands.py
+++ b/yumcommands.py
@@ -323,6 +323,15 @@ class MakeCacheCommand(YumCommand):
             base.repos.doSetup()
             for repo in base.repos.listEnabled():
                 repo.repoXML
+            
+            # These convert the downloaded data into usable data,
+            # we can't remove them until *LoadRepo() can do:
+            # 1. Download a .sqlite.bz2 and convert to .sqlite
+            # 2. Download a .xml.gz and convert to .xml.gz.sqlite
+            base.repos.populateSack(mdtype='metadata', cacheonly=1)
+            base.repos.populateSack(mdtype='filelists', cacheonly=1)
+            base.repos.populateSack(mdtype='otherdata', cacheonly=1)
+
 
         except yum.Errors.YumBaseError, e:
             return 1, [str(e)]



More information about the Yum-cvs-commits mailing list