From cae13fb5675a854ed94694a5291261d5deb0dae6 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Wed, 4 Mar 2020 12:51:25 +0100 Subject: [PATCH] xbps: add patch for regression --- ...-fix-regression-in-small-transaction.patch | 25 +++++++++++++++++++ srcpkgs/xbps/template | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/xbps/0001-bin-xbps-install-fix-regression-in-small-transaction.patch diff --git a/srcpkgs/xbps/0001-bin-xbps-install-fix-regression-in-small-transaction.patch b/srcpkgs/xbps/0001-bin-xbps-install-fix-regression-in-small-transaction.patch new file mode 100644 index 00000000000..1b669665ed8 --- /dev/null +++ b/srcpkgs/xbps/0001-bin-xbps-install-fix-regression-in-small-transaction.patch @@ -0,0 +1,25 @@ +From 4d40179a8ae86f16aeea1418b6a0b58c8ed8f3d7 Mon Sep 17 00:00:00 2001 +From: Duncan Overbruck +Date: Wed, 4 Mar 2020 12:46:44 +0100 +Subject: [PATCH] bin/xbps-install: fix regression in small transaction stats + +fixes #242 +--- + bin/xbps-install/transaction.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git bin/xbps-install/transaction.c bin/xbps-install/transaction.c +index ae1ddcf2..89d1b8a4 100644 +--- bin/xbps-install/transaction.c ++++ bin/xbps-install/transaction.c +@@ -125,6 +125,7 @@ show_package_list(struct transaction *trans, xbps_trans_type_t ttype, unsigned i + xbps_dictionary_get_bool(obj, "download", &dload); + tt = xbps_transaction_pkg_type(obj); + ++ buf = NULL; + if (tt == XBPS_TRANS_UPDATE) { + /* get installed pkgver */ + ipkgd = xbps_pkgdb_get_pkg(trans->xhp, pkgname); +-- +2.25.1 + diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index af905257e59..a0e661c1ca7 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -1,7 +1,7 @@ # Template file for 'xbps' pkgname=xbps version=0.59 -revision=1 +revision=2 bootstrap=yes build_style=configure short_desc="XBPS package system utilities"