[yum-commits] yumcommands.py

zpavlas at osuosl.org zpavlas at osuosl.org
Fri Jan 13 08:59:13 UTC 2012


 yumcommands.py |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 9d5864d0ca61a607e6ed1778ecae0fee127ce753
Author: Zdeněk Pavlas <zpavlas at redhat.com>
Date:   Fri Jan 13 09:54:35 2012 +0100

    Don't fail when pre-caching filelists. BZ 769864.
    
    populateSack() honors skip_if_unavailable
    for 'all' and 'metadata' only.

diff --git a/yumcommands.py b/yumcommands.py
index d503585..b9d27f7 100644
--- a/yumcommands.py
+++ b/yumcommands.py
@@ -969,9 +969,7 @@ class MakeCacheCommand(YumCommand):
             # 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)
+            base.repos.populateSack(mdtype='all', cacheonly=1)
 
 
         except yum.Errors.YumBaseError, e:


More information about the Yum-commits mailing list