Skip to content

Commit b354c93

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

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ compute_transaction_stats(struct xbps_handle *xhp)
8888

8989
if (ttype == XBPS_TRANS_REMOVE) {
9090
rm_pkgcnt++;
91-
} else if (ttype == XBPS_TRANS_CONFIGURE) {
91+
} else if (!(xhp->flags & XBPS_FLAG_DOWNLOAD_ONLY) &&
92+
ttype == XBPS_TRANS_CONFIGURE) {
9293
cf_pkgcnt++;
93-
} else if (ttype == XBPS_TRANS_INSTALL || ttype == XBPS_TRANS_REINSTALL) {
94+
} else if (!(xhp->flags & XBPS_FLAG_DOWNLOAD_ONLY) &&
95+
(ttype == XBPS_TRANS_INSTALL || ttype == XBPS_TRANS_REINSTALL)) {
9496
inst_pkgcnt++;
9597
} else if (ttype == XBPS_TRANS_UPDATE) {
9698
up_pkgcnt++;

0 commit comments

Comments
 (0)