[entropy.db.skel] make sure that retrieveAtom returned != None

This commit is contained in:
Fabio Erculiani
2010-07-09 15:27:44 +02:00
parent 9ff36efa3f
commit bda2ceac84
+6
View File
@@ -1638,6 +1638,9 @@ class EntropyRepositoryBase(TextInterface, EntropyRepositoryPluginStore, object)
quickpkg_queue = set(quickpkg_queue)
for package_id_owner in iddependencies:
myatom = self.retrieveAtom(package_id_owner)
if myatom is None:
# reverse deps table out of sync
continue
myatom = myatom.replace(key_from, key_to)
quickpkg_queue.add(myatom)
return quickpkg_queue
@@ -1717,6 +1720,9 @@ class EntropyRepositoryBase(TextInterface, EntropyRepositoryPluginStore, object)
self.commitChanges()
for package_id_owner in iddependencies:
myatom = self.retrieveAtom(package_id_owner)
if myatom is None:
# reverse deps table out of sync
continue
quickpkg_queue.add(myatom)
return quickpkg_queue