Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xbps-install: download-only misleading information and explanation. #489

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bin/xbps-install/xbps-install.1
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ If the first character is not '/' then it's a relative path of
.It Fl d , Fl -debug
Enables extra debugging shown to stderr.
.It Fl D , Fl -download-only
Only download packages to the cache, do not do any other installation steps.
This may be useful for doing system upgrades while offline, or automatically
downloading updates while leaving you with the option of still manually running
the update.
Only download packages and dependencies to the cache, do not do any other
installation steps. This may be useful for doing system upgrades while offline, or
automatically downloading updates while leaving you with the option of still
manually running the update.
.It Fl f , Fl -force
Force installation (downgrade if package version in repos is less than installed version),
or reinstallation (if package version in repos is the same) to the target
Expand Down
6 changes: 4 additions & 2 deletions lib/transaction_prepare.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ compute_transaction_stats(struct xbps_handle *xhp)

if (ttype == XBPS_TRANS_REMOVE) {
rm_pkgcnt++;
} else if (ttype == XBPS_TRANS_CONFIGURE) {
} else if (!(xhp->flags & XBPS_FLAG_DOWNLOAD_ONLY) &&
ttype == XBPS_TRANS_CONFIGURE) {
cf_pkgcnt++;
} else if (ttype == XBPS_TRANS_INSTALL || ttype == XBPS_TRANS_REINSTALL) {
} else if (!(xhp->flags & XBPS_FLAG_DOWNLOAD_ONLY) &&
(ttype == XBPS_TRANS_INSTALL || ttype == XBPS_TRANS_REINSTALL)) {
inst_pkgcnt++;
} else if (ttype == XBPS_TRANS_UPDATE) {
up_pkgcnt++;
Expand Down