Skip to content

Commit d75c804

Browse files
committed
xbps-install: download-only misleading information and explanation. close or see #341
1 parent 838fea7 commit d75c804

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

bin/xbps-install/xbps-install.1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ If the first character is not '/' then it's a relative path of
9999
.It Fl d , Fl -debug
100100
Enables extra debugging shown to stderr.
101101
.It Fl D , Fl -download-only
102-
Only download packages to the cache, do not do any other installation steps.
103-
This may be useful for doing system upgrades while offline, or automatically
104-
downloading updates while leaving you with the option of still manually running
105-
the update.
102+
Only download packages and dependencies to the cache, do not do any other
103+
installation steps. This may be useful for doing system upgrades while offline, or
104+
automatically downloading updates while leaving you with the option of still
105+
manually running the update.
106106
.It Fl f , Fl -force
107107
Force installation (downgrade if package version in repos is less than installed version),
108108
or reinstallation (if package version in repos is the same) to the target

lib/transaction_prepare.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ compute_transaction_stats(struct xbps_handle *xhp)
9090
rm_pkgcnt++;
9191
} else if (ttype == XBPS_TRANS_CONFIGURE) {
9292
cf_pkgcnt++;
93-
} else if (ttype == XBPS_TRANS_INSTALL || ttype == XBPS_TRANS_REINSTALL) {
93+
} else if (!(xhp->flags & XBPS_FLAG_DOWNLOAD_ONLY) &&
94+
(ttype == XBPS_TRANS_INSTALL || ttype == XBPS_TRANS_REINSTALL)) {
9495
inst_pkgcnt++;
9596
} else if (ttype == XBPS_TRANS_UPDATE) {
9697
up_pkgcnt++;

0 commit comments

Comments
 (0)