From f68893ec9af32e87659e9ca49556c0573c3ced52 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Tue, 15 Aug 2023 16:42:33 -0400 Subject: [PATCH] lib/transaction_fetch.c: don't rely on digest being NULL caused issues when .xbps existed locally but .sig2 did not. --- lib/transaction_fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transaction_fetch.c b/lib/transaction_fetch.c index 4af461db..4cbe288e 100644 --- a/lib/transaction_fetch.c +++ b/lib/transaction_fetch.c @@ -159,7 +159,7 @@ download_binpkg(struct xbps_handle *xhp, xbps_dictionary_t repo_pkgd) * If digest is not set, binary package was not downloaded, * i.e. 304 not modified, verify by file instead. */ - if (*digest) { + if (fetchLastErrCode == FETCH_UNCHANGED) { *sigsuffix = '\0'; if (!xbps_verify_file_signature(repo, buf)) { rv = EPERM;