[entropy.client.interfaces.dep] calculate_available_packages: ignore package entry if retrieveKeySlot returns None

This commit is contained in:
Fabio Erculiani
2010-04-12 10:33:33 +02:00
parent acd966053c
commit bac8adc2b2
+5 -1
View File
@@ -1443,7 +1443,11 @@ class CalculatorsMixin:
)
# get key + slot
try:
key, slot = dbconn.retrieveKeySlot(idpackage)
key_slot = dbconn.retrieveKeySlot(idpackage)
if key_slot is None:
# mmh... invalid entry, ignore
continue
key, slot = key_slot
matches = self._installed_repository.searchKeySlot(key, slot)
except (DatabaseError, IntegrityError, OperationalError,):