Don't redo pkgSack init. when pkgSack is false, fixes BZ#507220
authorJames Antill <james@and.org>
Mon, 22 Jun 2009 05:25:32 +0000 (01:25 -0400)
committerJames Antill <james@and.org>
Mon, 22 Jun 2009 05:25:32 +0000 (01:25 -0400)
yum/__init__.py

index 2a1f806..ae70354 100644 (file)
@@ -483,7 +483,7 @@ class YumBase(depsolve.Depsolve):
         """populates the package sacks for information from our repositories,
            takes optional archlist for archs to include"""
 
-        if self._pkgSack and thisrepo is None:
+        if self._pkgSack is not None and thisrepo is None:
             return self._pkgSack
         
         if thisrepo is None: