Skip to content

Commit

Permalink
lib/transaction_fetch.c: don't rely on digest being NULL
Browse files Browse the repository at this point in the history
caused issues when .xbps existed locally but .sig2 did not.
  • Loading branch information
classabbyamp authored and Duncaen committed Aug 30, 2023
1 parent 192fac7 commit f68893e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transaction_fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f68893e

Please sign in to comment.