From 00149d0f3775c81c541f48f83860a45998e34c66 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 20 Jun 2015 09:48:21 +0200 Subject: [PATCH] xbps_transaction_prepare: if ENOSPC, keep the transaction dictionary. ... we need this in xbps-install to print required/free space on rootfs. Close #101 --- NEWS | 4 ++++ lib/transaction_dictionary.c | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 9da14259..69050409 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,9 @@ xbps-0.46 (???): + * xbps_transaction_prepare(): do not release the transaction dictionary + if it returns ENOSPC, we need it to have access to this data to print + required/free space. Fixes #101 ((https://github.com/voidlinux/xbps/issues/101) + * xbps-uchroot(1): now handles SIG{INT,TERM,QUIT} signals to clean up the temporary masterdir if `-t` is set. diff --git a/lib/transaction_dictionary.c b/lib/transaction_dictionary.c index 7c5b2067..a2e30d07 100644 --- a/lib/transaction_dictionary.c +++ b/lib/transaction_dictionary.c @@ -344,8 +344,6 @@ xbps_transaction_prepare(struct xbps_handle *xhp) * and removed to the transaction dictionary. */ if ((rv = compute_transaction_stats(xhp)) != 0) { - xbps_object_release(xhp->transd); - xhp->transd = NULL; return rv; } /*