File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,10 @@ If the first character is not '/' then it's a relative path of
99
99
.It Fl d , Fl -debug
100
100
Enables extra debugging shown to stderr.
101
101
.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.
106
106
.It Fl f , Fl -force
107
107
Force installation (downgrade if package version in repos is less than installed version),
108
108
or reinstallation (if package version in repos is the same) to the target
Original file line number Diff line number Diff line change @@ -88,9 +88,11 @@ compute_transaction_stats(struct xbps_handle *xhp)
88
88
89
89
if (ttype == XBPS_TRANS_REMOVE ) {
90
90
rm_pkgcnt ++ ;
91
- } else if (ttype == XBPS_TRANS_CONFIGURE ) {
91
+ } else if (!(xhp -> flags & XBPS_FLAG_DOWNLOAD_ONLY ) &&
92
+ ttype == XBPS_TRANS_CONFIGURE ) {
92
93
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 )) {
94
96
inst_pkgcnt ++ ;
95
97
} else if (ttype == XBPS_TRANS_UPDATE ) {
96
98
up_pkgcnt ++ ;
You can’t perform that action at this time.
0 commit comments