]> err.no Git - dak/commitdiff
Add an inline signed release file
authorJoerg Jaspert <joerg@debian.org>
Fri, 30 Oct 2009 13:22:03 +0000 (14:22 +0100)
committerJoerg Jaspert <joerg@debian.org>
Fri, 30 Oct 2009 13:22:03 +0000 (14:22 +0100)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/generate_releases.py

index b0954fe03346460704f7580baa13555cfd1c8309..31cae490775dafcf10bcbd9e8967a6f0ab94089f 100755 (executable)
@@ -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))
 
 #######################################################################################