From: Mike O'Connor Date: Wed, 14 Jan 2009 07:59:58 +0000 (-0500) Subject: Merge branch 'master' of https://ftp-master.debian.org/git/dak X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=b1161cd16a1079a0432c57a058cb2c47f0aba4f0;hp=cf09cfaaeaf0548918f3b6deeec2946b64a0c0b5;p=dak.git Merge branch 'master' of https://ftp-master.debian.org/git/dak Conflicts: web/dinstall.html --- diff --git a/config/debian/extensions.py b/config/debian/extensions.py index 1e7ea433..0bb51bd7 100644 --- a/config/debian/extensions.py +++ b/config/debian/extensions.py @@ -86,7 +86,7 @@ def check_signed_by_key(oldfn): if changes["source"] == "dpkg": fpr = changes["fingerprint"] - (uid, uid_name) = dak_module.lookup_uid_from_fingerprint(fpr) + (uid, uid_name, is_dm) = dak_module.lookup_uid_from_fingerprint(fpr) if fpr == "5906F687BD03ACAD0D8E602EFCF37657" or uid == "iwj": reject("Upload blocked due to hijack attempt 2008/03/19") diff --git a/daklib/utils.py b/daklib/utils.py index 47c80f3c..4a71d01d 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -26,6 +26,7 @@ import codecs, commands, email.Header, os, pwd, re, select, socket, shutil, \ sys, tempfile, traceback, stat import apt_pkg import database +import time from dak_exceptions import * ################################################################################ @@ -1231,11 +1232,22 @@ used.""" if keywords.has_key("NODATA"): reject("no signature found in %s." % (sig_filename)) bad = 1 + if keywords.has_key("EXPKEYSIG"): + args = keywords["EXPKEYSIG"] + if len(args) >= 1: + key = args[0] + reject("Signature made by expired key ßx%s" % (key)) + bad = 1 if keywords.has_key("KEYEXPIRED") and not keywords.has_key("GOODSIG"): args = keywords["KEYEXPIRED"] + expiredate="" if len(args) >= 1: - key = args[0] - reject("The key (0x%s) used to sign %s has expired." % (key, sig_filename)) + timestamp = args[0] + if timestamp.count("T") == 0: + expiredate = time.strftime("%Y-%m-%d", time.gmtime(timestamp)) + else: + expiredate = timestamp + reject("The key used to sign %s has expired on %s" % (sig_filename, expiredate)) bad = 1 if bad: diff --git a/scripts/debian/dm-monitor b/scripts/debian/dm-monitor index 87846b70..93e36472 100755 --- a/scripts/debian/dm-monitor +++ b/scripts/debian/dm-monitor @@ -5,7 +5,7 @@ echo "Known debian maintainers:" psql --html projectb <' OR m.name LIKE '% <' || substring(u.uid FROM 4) || '>') - WHERE u.uid LIKE 'dm:%' AND sa.suite = 5 + WHERE u.uid LIKE '%@%' AND sa.suite = 5 ) ORDER BY uid.uid; EOF @@ -31,13 +31,13 @@ EOF echo "Packages debian maintainers may update:" psql --html projectb <' OR - m.name LIKE '% <' || substring(u.uid FROM 4) || '>') - WHERE u.uid LIKE 'dm:%' AND sa.suite = 5 + m.name LIKE '% <' || substring(u.uid FROM 4) || '>') + WHERE s.dm_upload_allowed = 't' GROUP BY s.source, s.version, u.uid ORDER BY u.uid, s.source, s.version; EOF @@ -47,7 +47,7 @@ psql --html projectb <Made by Eduard Bloch <blade@debian.org>
Small update to use 12h dinstall by Felipe Augusto van de Wiel (faw)
Small update to use 6h dinstall by Mike O'Connor (stew) +
Please check this announcement about dinstall every 6 hours.