From 6f3a657f66b9c766b5fa6c51c26283d3547f5169 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 28 Sep 2011 04:46:22 -0500 Subject: 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 --- src/pacman/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pacman/sync.c') 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) { -- cgit v1.2.3-70-g09d2