xbps-install: exclude hold packages from total download size

This commit is contained in:
Piotr Wójcik 2021-12-08 22:51:23 +01:00 committed by Duncan Overbruck
parent d3b55df51b
commit d744b4b238

View File

@ -99,6 +99,7 @@ compute_transaction_stats(struct xbps_handle *xhp)
} }
if ((ttype != XBPS_TRANS_CONFIGURE) && (ttype != XBPS_TRANS_REMOVE) && if ((ttype != XBPS_TRANS_CONFIGURE) && (ttype != XBPS_TRANS_REMOVE) &&
(ttype != XBPS_TRANS_HOLD) &&
xbps_repository_is_remote(repo) && !xbps_binpkg_exists(xhp, obj)) { xbps_repository_is_remote(repo) && !xbps_binpkg_exists(xhp, obj)) {
xbps_dictionary_get_uint64(obj, "filename-size", &tsize); xbps_dictionary_get_uint64(obj, "filename-size", &tsize);
tsize += 512; tsize += 512;