xbps_transaction_prepare: if ENOSPC, keep the transaction dictionary.

... we need this in xbps-install to print required/free space on rootfs.

Close #101
This commit is contained in:
Juan RP 2015-06-20 09:48:21 +02:00
parent 5ebd4a6dfb
commit 00149d0f37
2 changed files with 4 additions and 2 deletions

4
NEWS
View File

@ -1,5 +1,9 @@
xbps-0.46 (???): 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 * xbps-uchroot(1): now handles SIG{INT,TERM,QUIT} signals to clean up the
temporary masterdir if `-t` is set. temporary masterdir if `-t` is set.

View File

@ -344,8 +344,6 @@ xbps_transaction_prepare(struct xbps_handle *xhp)
* and removed to the transaction dictionary. * and removed to the transaction dictionary.
*/ */
if ((rv = compute_transaction_stats(xhp)) != 0) { if ((rv = compute_transaction_stats(xhp)) != 0) {
xbps_object_release(xhp->transd);
xhp->transd = NULL;
return rv; return rv;
} }
/* /*