xbps-install: with -D there are no pkgs to install/update/configure/remove.
This commit is contained in:
parent
fe943eb7d2
commit
589a96a50e
@ -125,6 +125,16 @@ show_transaction_sizes(struct transaction *trans, int cols)
|
|||||||
uint64_t dlsize = 0, instsize = 0, rmsize = 0, disk_free_size = 0;
|
uint64_t dlsize = 0, instsize = 0, rmsize = 0, disk_free_size = 0;
|
||||||
char size[8];
|
char size[8];
|
||||||
|
|
||||||
|
if (trans->xhp->flags & XBPS_FLAG_DOWNLOAD_ONLY) {
|
||||||
|
xbps_dictionary_get_uint32(trans->d, "total-download-pkgs",
|
||||||
|
&trans->dl_pkgcnt);
|
||||||
|
trans->inst_pkgcnt = 0;
|
||||||
|
trans->up_pkgcnt = 0;
|
||||||
|
trans->cf_pkgcnt = 0;
|
||||||
|
trans->rm_pkgcnt = 0;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
if (!print_trans_colmode(trans, cols)) {
|
if (!print_trans_colmode(trans, cols)) {
|
||||||
/*
|
/*
|
||||||
* Show the list of packages that will be downloaded, installed, updated,
|
* Show the list of packages that will be downloaded, installed, updated,
|
||||||
@ -171,6 +181,7 @@ show_transaction_sizes(struct transaction *trans, int cols)
|
|||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
out:
|
||||||
/*
|
/*
|
||||||
* Show total download/installed/removed size for all required packages.
|
* Show total download/installed/removed size for all required packages.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user