entropy.client: handle bogus entries on _lookup_library_breakages

This commit is contained in:
Fabio Erculiani
2009-05-12 17:23:06 +02:00
parent 55e96d0050
commit f2cc4e1d91
+6 -2
View File
@@ -922,8 +922,12 @@ class CalculatorsMixin:
client_keyslots = set()
def mymf(idpackage):
if idpackage == clientmatch[0]: return 0
return self.clientDbconn.retrieveKeySlot(idpackage)
if idpackage == clientmatch[0]:
return 0
ks = self.clientDbconn.retrieveKeySlot(idpackage)
if ks is None:
return 0
return ks
client_keyslots = set([x for x in map(mymf,client_idpackages) if x != 0])
# all the packages in repo_side should be pulled in too