xbps-install: only print num of downloaded pkgs with -D.

This commit is contained in:
Juan RP
2019-06-21 16:26:08 +02:00
parent f1181c7415
commit 13172c22fc
2 changed files with 15 additions and 10 deletions

View File

@ -147,6 +147,12 @@ print_trans_colmode(struct transaction *trans, int cols)
} else if (strcmp(tract, "configure") == 0) {
trans->cf_pkgcnt++;
}
if (trans->xhp->flags & XBPS_FLAG_DOWNLOAD_ONLY) {
trans->inst_pkgcnt = 0;
trans->up_pkgcnt = 0;
trans->rm_pkgcnt = 0;
trans->cf_pkgcnt = 0;
}
if (dload) {
trans->dl_pkgcnt++;
}