3 # This function and its data should move into daklib/extensions.py
7 def replace_dak_function(module,name):
9 replace_funcs["%s:%s" % (module,name)] = f
12 @replace_dak_function("process-unchecked", "check_signed_by_key")
13 def check_signed_by_key():
14 changes = dak_module.changes
15 reject = dak_module.reject
17 if changes["source"] == "dpkg":
18 fpr = changes["fingerprint"]
19 (uid, uid_name) = dak_module.lookup_uid_from_fingerprint(fpr)
20 if fpr == "5906F687BD03ACAD0D8E602EFCF37657" or uid == "iwj":
21 reject("Upload blocked due to hijack attempt 2008/03/19")
23 # NB: 1.15.0, 1.15.2 signed by this key targetted at unstable
24 # have been made available in the wild, and should not be
25 # blocked until Debian's dpkg has revved past those version
28 replaced_funcs["check_signed_by_key"]()
33 # This bit should be done automatically too
35 for f,newfunc in replace_funcs.iteritems():
37 if len(f) > 0 and m == name:
38 replaced_funcs[f] = dak_module.__dict__[f]
39 dak_module.__dict__[f] = newfunc