xbps: add patch to reset rv on hash mismatch
This commit is contained in:
parent
133ad64dc0
commit
7b554a0225
18
srcpkgs/xbps/patches/d72091a20.patch
Normal file
18
srcpkgs/xbps/patches/d72091a20.patch
Normal 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;
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user