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:
parent
5ebd4a6dfb
commit
00149d0f37
4
NEWS
4
NEWS
@ -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.
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user