Skip to content

Commit

Permalink
xbps-install: download-only misleading information and explanation. c…
Browse files Browse the repository at this point in the history
…lose or see #341
  • Loading branch information
zlice committed May 18, 2022
1 parent 838fea7 commit b354c93
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
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

0 comments on commit b354c93

Please sign in to comment.