From 453589e6cc20a679a1a77223087c5d1b50edfdb2 Mon Sep 17 00:00:00 2001
From: fly_fzc <2385803914@qq.com>
Date: Fri, 17 Jul 2026 17:55:01 +0800
Subject: [PATCH] Fix two tests failed:
rpm -U <corrupted unsigned 1> FAILED (rpmi.at:155)
rpm -U <corrupted signed 3> FAILED (rpmi.at:299)
tests/rpmi.at | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
@@ -180,14 +180,14 @@ runroot rpm -U --ignorearch --ignoreos --nodeps --nodigest --noverify \
],
[1],
[INSTALL 1
-error: unpacking of archive failed: cpio: Bad magic
+error: unpacking of archive failed: cpio: Bad/unreadable header
error: hello-2.0-1.x86_64: install failed
INSTALL 2
package hello-2.0-1.x86_64 does not verify: Payload SHA256 digest: BAD (Expected 84a7338287bf19715c4eed0243f5cdb447eeb0ade37b2af718d4060aefca2f7c != bea903609dceac36e1f26a983c493c98064d320fdfeb423034ed63d649b2c8dc)
INSTALL 3
package hello-2.0-1.x86_64 does not verify: no digest
INSTALL 4
-error: unpacking of archive failed: cpio: Bad magic
+error: unpacking of archive failed: cpio: Bad/unreadable header
error: hello-2.0-1.x86_64: install failed
],
[])
@@ -334,10 +334,10 @@ runroot rpm -U --ignorearch --ignoreos --nodeps --noverify \
[1],
[INSTALL 1
warning: /tmp/hello-2.0-1.x86_64-signed.rpm: Header V4 RSA/SHA256 Signature, key ID 1964c5fc: NOKEY
-error: unpacking of archive failed: cpio: Bad magic
+error: unpacking of archive failed: cpio: Bad/unreadable header
error: hello-2.0-1.x86_64: install failed
INSTALL 2
-error: unpacking of archive failed: cpio: Bad magic
+error: unpacking of archive failed: cpio: Bad/unreadable header
error: hello-2.0-1.x86_64: install failed
INSTALL 3
warning: /tmp/hello-2.0-1.x86_64-signed.rpm: Header V4 RSA/SHA256 Signature, key ID 1964c5fc: NOKEY
@@ -346,7 +346,7 @@ INSTALL 4
package hello-2.0-1.x86_64 does not verify: no signature
INSTALL 5
warning: /tmp/hello-2.0-1.x86_64-signed.rpm: Header V4 RSA/SHA256 Signature, key ID 1964c5fc: NOKEY
-error: unpacking of archive failed: cpio: Bad magic
+error: unpacking of archive failed: cpio: Bad/unreadable header
error: hello-2.0-1.x86_64: install failed
],
[])
--
2.33.0