xbps: add patch to reset rv on hash mismatch

This commit is contained in:
Duncaen 2019-06-26 13:10:58 +02:00
parent 133ad64dc0
commit 7b554a0225
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,18 @@
commit d72091a2060817ac10f55fbd8de4e0611d6d6940
Author: Duncaen <mail@duncano.de>
Date: Wed Jun 26 13:07:16 2019 +0200
lib/transaction_files.c: fix returning error on hash mismatch
diff --git lib/transaction_files.c lib/transaction_files.c
index 4dbf4584..9a6ca630 100644
--- lib/transaction_files.c
+++ lib/transaction_files.c
@@ -331,6 +331,7 @@ collect_obsoletes(struct xbps_handle *xhp)
continue;
case ERANGE:
/* hash mismatch don't delete it */
+ rv = 0;
continue;
default:
break;

View file

@ -1,7 +1,7 @@
# Template file for 'xbps'
pkgname=xbps
version=0.56
revision=2
revision=3
bootstrap=yes
build_style=configure
short_desc="XBPS package system utilities"