From 4e7ac47dd2a8971260590f1e05327d11f755c0b3 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Wed, 6 Feb 2008 22:45:42 +0100 Subject: [PATCH] key variable missing for keyexpired reject --- ChangeLog | 5 +++++ daklib/utils.py | 3 +++ 2 files changed, 8 insertions(+) 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 -- 2.39.5