xbps-install: fix regression in stats.

Updated packages will also be configured, so take this into
account in the stats.
This commit is contained in:
Juan RP 2020-03-31 17:26:38 +02:00
parent 8b0d54c736
commit 743e76938f
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

View File

@ -443,7 +443,8 @@ exec_transaction(struct xbps_handle *xhp, unsigned int maxcols, bool yes, bool d
printf("\n%u downloaded, %u installed, %u updated, " printf("\n%u downloaded, %u installed, %u updated, "
"%u configured, %u removed.\n", "%u configured, %u removed.\n",
trans->dl_pkgcnt, trans->inst_pkgcnt, trans->dl_pkgcnt, trans->inst_pkgcnt,
trans->up_pkgcnt, trans->cf_pkgcnt + trans->inst_pkgcnt, trans->up_pkgcnt,
trans->cf_pkgcnt + trans->inst_pkgcnt + trans->up_pkgcnt,
trans->rm_pkgcnt); trans->rm_pkgcnt);
} else { } else {
fprintf(stderr, "Transaction failed! see above for errors.\n"); fprintf(stderr, "Transaction failed! see above for errors.\n");