From 21818c6c8f3d4fe7836326d27f38421c29c22db7 Mon Sep 17 00:00:00 2001 From: Paul Nasrat Date: Mon, 16 Apr 2007 13:31:04 +0100 Subject: [PATCH] Fix to handle oldpackages that use HEADERIMAGE --- lib/signature.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/signature.c b/lib/signature.c index 09992ec..5617e32 100644 --- a/lib/signature.c +++ b/lib/signature.c @@ -268,7 +268,7 @@ rpmRC rpmReadSignature(FD_t fd, Header * sighp, sigType sig_type, xx = headerVerifyInfo(1, dl, info, &entry->info, 1); if (xx != -1 || - !(entry->info.tag == RPMTAG_HEADERSIGNATURES + !((entry->info.tag == RPMTAG_HEADERSIGNATURES || entry->info.tag == RPMTAG_HEADERIMAGE) && entry->info.type == RPM_BIN_TYPE && entry->info.count == REGION_TAG_COUNT)) { @@ -583,6 +583,7 @@ static int makeGPGSignature(const char * file, int_32 * sigTagp, if (gpg_path && *gpg_path != '\0') (void) dosetenv("GNUPGHOME", gpg_path, 1); /*@=boundsread@*/ + (void) dosetenv("LC_ALL", "C", 1); unsetenv("MALLOC_CHECK_"); cmd = rpmExpand("%{?__gpg_sign_cmd}", NULL); -- 2.7.4