]> git.pld-linux.org Git - packages/poldek.git/commitdiff
make rsa signature satify both pgp and gpg auto/th/poldek-0.42.2-7
authorJan Palus <atler@pld-linux.org>
Sat, 17 Apr 2021 10:59:18 +0000 (12:59 +0200)
committerJan Palus <atler@pld-linux.org>
Sat, 17 Apr 2021 10:59:18 +0000 (12:59 +0200)
signature verification finally working. not sure why it was pgp
exclusive though it seems this logic is nearly
20 years old and likely needs an update

poldek-rsa_sig_rpmorg.patch [new file with mode: 0644]
poldek.spec

diff --git a/poldek-rsa_sig_rpmorg.patch b/poldek-rsa_sig_rpmorg.patch
new file mode 100644 (file)
index 0000000..cc1701e
--- /dev/null
@@ -0,0 +1,12 @@
+--- poldek-0.42.2/pm/rpmorg/signature.c.orig   2021-04-17 12:56:41.167478071 +0200
++++ poldek-0.42.2/pm/rpmorg/signature.c        2021-04-17 12:56:12.007632757 +0200
+@@ -99,6 +99,9 @@
+         switch (td.tag) {
+             case RPMSIGTAG_RSA:
++                flags |= PKGVERIFY_PGP;
++                flags |= PKGVERIFY_GPG;
++                break;
+             case RPMSIGTAG_PGP5:      /* XXX legacy */
+             case RPMSIGTAG_PGP:
+                 flags |= PKGVERIFY_PGP;
index 069e8d32592ade1078f377d9546091da36f33d7e..5e091bce264b228b6f2c4a6bd9a7a89280033c78 100644 (file)
@@ -68,6 +68,7 @@ Patch13:      trurlib-shared.patch
 Patch14:       rpm4-script-req-workaround.patch
 Patch15:       skip-buildid-obsoletes.patch
 Patch16:       verify-signature.patch
+Patch17:       %{name}-rsa_sig_rpmorg.patch
 URL:           http://poldek.pld-linux.org/
 BuildRequires: %{db_pkg}-devel >= %{ver_db}
 BuildRequires: autoconf >= 2.63
@@ -261,6 +262,7 @@ cd ..
 %patch14 -p1
 %patch15 -p1
 %patch16 -p1
+%patch17 -p1
 
 %{__rm} doc/poldek.info
 %{__rm} m4/libtool.m4 m4/lt*.m4
This page took 0.139159 seconds and 4 git commands to generate.