45afda
From: Panu Matilainen <pmatilai@redhat.com>
45afda
Date: Tue, 10 Oct 2017 14:40:05 +0300
45afda
Subject: [PATCH 05/33] Unbreak file signing from previous commit
45afda
From cabecd35ff6842c029103732ca5e5ea7dcdce256 Mon Sep 17 00:00:00 2001
45afda
45afda
Commit f558e886050c4e98f6cdde391df679a411b3f62c essentially broke
45afda
file signing because signatures never get migrated into the package
45afda
header. This is what happens when you play around with too many
45afda
variants of the same thing and forget to test what ultimately got
45afda
committed, which was subtly different from anything else so far... :(
45afda
---
45afda
 lib/package.c | 2 ++
45afda
 1 file changed, 2 insertions(+)
45afda
45afda
diff --git a/lib/package.c b/lib/package.c
45afda
index 211fd3902..b7d996a12 100644
45afda
--- a/lib/package.c
45afda
+++ b/lib/package.c
45afda
@@ -43,6 +43,8 @@ struct taglate_s {
45afda
     { RPMSIGTAG_GPG, RPMTAG_SIGGPG, 0, 0 },
45afda
     /* { RPMSIGTAG_PGP5, RPMTAG_SIGPGP5, 0, 0 }, */ /* long obsolete, dont use */
45afda
     { RPMSIGTAG_PAYLOADSIZE, RPMTAG_ARCHIVESIZE, 1, 1 },
45afda
+    { RPMSIGTAG_FILESIGNATURES, RPMTAG_FILESIGNATURES, 0, 1 },
45afda
+    { RPMSIGTAG_FILESIGNATURELENGTH, RPMTAG_FILESIGNATURELENGTH, 1, 1 },
45afda
     { RPMSIGTAG_SHA1, RPMTAG_SHA1HEADER, 1, 0 },
45afda
     { RPMSIGTAG_SHA256, RPMTAG_SHA256HEADER, 1, 0 },
45afda
     { RPMSIGTAG_DSA, RPMTAG_DSAHEADER, 0, 0 },
45afda
-- 
45afda
2.27.0
45afda