summaryrefslogtreecommitdiff
path: root/src/pacman/sync.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-28 04:46:22 -0500
committerDan McGee <dan@archlinux.org>2011-09-28 10:18:42 -0500
commit6f3a657f66b9c766b5fa6c51c26283d3547f5169 (patch)
treeb515eb5d3efd9231bc1c25091fd9beadca7a5c27 /src/pacman/sync.c
parentbcc6a5d72df3cb3ee9f3d2347526c3dc03d5f55a (diff)
Always show download size if -w/--downloadonly was provided
The prompt can be rather confusing otherwise when all files have already been downloaded, but there is not a single total size listed. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/sync.c')
-rw-r--r--src/pacman/sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 48ae30cf..5d6dcb99 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -960,7 +960,7 @@ int pacman_sync(alpm_list_t *targets)
}
alpm_list_t *targs = alpm_list_strdup(targets);
- if(!(config->flags & ALPM_TRANS_FLAG_DOWNLOADONLY) && !config->print) {
+ if(!config->op_s_downloadonly && !config->print) {
/* check for newer versions of packages to be upgraded first */
alpm_list_t *packages = syncfirst();
if(packages) {