From b2e566ae329d943620488436bf09101151396ea7 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Fri, 30 Oct 2009 14:22:03 +0100 Subject: [PATCH] Add an inline signed release file Signed-off-by: Joerg Jaspert --- dak/generate_releases.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dak/generate_releases.py b/dak/generate_releases.py index b0954fe0..31cae490 100755 --- a/dak/generate_releases.py +++ b/dak/generate_releases.py @@ -379,13 +379,21 @@ def main (): dest = Cnf["Dir::Root"] + tree + "/Release.gpg" if os.path.exists(dest): os.unlink(dest) + inlinedest = Cnf["Dir::Root"] + tree + "/InRelease" + if os.path.exists(inlinedest): + os.unlink(inlinedest) for keyid in signkeyids: - if keyid != "": defkeyid = "--default-key %s" % keyid - else: defkeyid = "" + if keyid != "": + defkeyid = "--default-key %s" % keyid + else: + defkeyid = "" os.system("gpg %s %s %s --detach-sign <%s >>%s" % (keyring, defkeyid, arguments, Cnf["Dir::Root"] + tree + "/Release", dest)) + os.system("gpg %s %s %s --clearsign <%s >>%s" % + (keyring, defkeyid, arguments, + Cnf["Dir::Root"] + tree + "/Release", inlinedest)) ####################################################################################### -- 2.39.5