From: Joerg Jaspert Date: Wed, 6 Feb 2008 21:45:42 +0000 (+0100) Subject: key variable missing for keyexpired reject X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e7ac47dd2a8971260590f1e05327d11f755c0b3;p=dak key variable missing for keyexpired reject --- diff --git a/ChangeLog b/ChangeLog index 90c033a7..79a893b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-06 Joerg Jaspert + + * daklib/utils.py (check_signature): Make variable key available, + so we can access it. + 2008-01-07 Joerg Jaspert * dak/examine_package.py (check_deb): Remove linda call. It diff --git a/daklib/utils.py b/daklib/utils.py index c6eeac2f..665d9928 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -1009,6 +1009,9 @@ used.""" reject("no signature found in %s." % (sig_filename)) bad = 1 if keywords.has_key("KEYEXPIRED") and not keywords.has_key("GOODSIG"): + args = keywords["KEYEXPIRED"] + if len(args) >= 1: + key = args[0] reject("The key (0x%s) used to sign %s has expired." % (key, sig_filename)) bad = 1