xbps-install: size required on disk == dlsize+instsize.

This commit is contained in:
Juan RP 2013-11-15 10:29:07 +01:00
parent f991574228
commit e03d49f6bf

View File

@ -161,7 +161,7 @@ show_transaction_sizes(struct transaction *trans, int cols)
printf("Total download size:\t%6s\n", size);
}
if (instsize) {
if (xbps_humanize_number(size, (int64_t)instsize) == -1) {
if (xbps_humanize_number(size, (int64_t)(instsize+dlsize)) == -1) {
xbps_error_printf("humanize_number2 returns "
"%s\n", strerror(errno));
return -1;