xbps_transaction_prepare: fix stats for removals.
This commit is contained in:
parent
77c72f9c2c
commit
24bbfffba1
@ -106,8 +106,11 @@ compute_transaction_stats(struct xbps_handle *xhp)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/* installed_size from repo */
|
/* installed_size from repo */
|
||||||
xbps_dictionary_get_uint64(obj, "installed_size", &tsize);
|
if (ttype != XBPS_TRANS_REMOVE && ttype != XBPS_TRANS_HOLD &&
|
||||||
instsize += tsize;
|
ttype != XBPS_TRANS_CONFIGURE) {
|
||||||
|
xbps_dictionary_get_uint64(obj, "installed_size", &tsize);
|
||||||
|
instsize += tsize;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* If removing or updating a package without preserve,
|
* If removing or updating a package without preserve,
|
||||||
* get installed_size from pkgdb instead.
|
* get installed_size from pkgdb instead.
|
||||||
|
Loading…
Reference in New Issue
Block a user