[yum-git] Branch 'yum-3_2_X' - yum/sqlitesack.py

James Antill james at linux.duke.edu
Mon Aug 18 21:10:29 UTC 2008


 yum/sqlitesack.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit cb3a7655e627dd0a40249a2597c26241d580a081
Author: James Antill <james at and.org>
Date:   Mon Aug 18 17:09:42 2008 -0400

     Minor API fixup for arch_allowed.
      now compatible with old behaviour if you don't call excludeArch()
      or you call it twice with different args. (crack)

diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py
index 1590fe1..1dd5ac3 100644
--- a/yum/sqlitesack.py
+++ b/yum/sqlitesack.py
@@ -281,6 +281,7 @@ class YumSqlitePackageSack(yumRepo.YumPackageSack):
             'requires' : { },
             }
         self._key2pkg = {}
+        self._arch_allowed = set()
 
     @catchSqliteException
     def _sql_MD(self, MD, repo, sql, *args):
@@ -1199,7 +1200,7 @@ class YumSqlitePackageSack(yumRepo.YumPackageSack):
     def excludeArchs(self, archlist):
         """excludes incompatible arches - archlist is a list of compat arches"""
         
-        self._arch_allowed = set(archlist)
+        self._arch_allowed.update(archlist)
         sarchlist = map(lambda x: "'%s'" % x , archlist)
         arch_query = ",".join(sarchlist)
 



More information about the Yum-cvs-commits mailing list