# "keyring logs report key change from {} to {}, RT#{}".format(key1, key2, rt),
# keyring_rt=rt,
# keyring_log_date=d,
...
...
@@ -396,7 +396,7 @@ class CheckKeyringLogs(MaintenanceTask):
#print("# Replaced %s with %s (already done in the database) %s" % (key1, key2, self.rturl(rt)))
pass# Already known
elifp1isnotNoneandp2isNone:
fpr,ktype=self.maint.keyrings.resolve_keyid(key2)
fpr,ktype=self.hk.keyrings.resolve_keyid(key2)
iffprisNone:
self._ann_person(d,rt,p1,"key changed to unknown key {}".format(key2))
# print("! %s replaced key %s with %s but could not find %s in keyrings %s" % (p.lookup_key, key1, key2, key2, self.rturl(rt)))
...
...
@@ -408,7 +408,7 @@ class CheckKeyringLogs(MaintenanceTask):
else:
# This is very weird, so we log instead of just annotating
forpin(p1,p2):
self.maint.inconsistencies.log_person(self,p,
self.hk.inconsistencies.log_person(self,p,
"keyring logs report key change from {} to {}, but the keys belong to two different people, {} and {}. RT #{}".format(key1,key2,p1.lookup_key,p2.lookup_key,rt),
keyring_rt=rt,
keyring_log_date=d.strftime("%Y%m%d %H%M%S"))
...
...
@@ -430,7 +430,7 @@ class CheckKeyringLogs(MaintenanceTask):
self._ann_person(d,rt,p,"relevant but unparsed log entry: \"{}\"".format(line))
continue
fpr,ktype=self.maint.keyrings.resolve_keyid(key)
fpr,ktype=self.hk.keyrings.resolve_keyid(key)
iffprisnotNone:
self._ann_fpr(d,rt,fpr,"relevant but unparsed log entry: \"{}\"".format(line))
...
...
@@ -455,7 +455,7 @@ class CheckKeyringLogs(MaintenanceTask):
returnTrue
returnFalse
defrun(self):
defrun_main(self,stage):
"""
Parse changes from changelog entries after the given date (non inclusive).