summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2016-03-29 20:21:42 +1000
committerAllan McRae <allan@archlinux.org>2016-05-05 13:52:23 +1000
commitee960048b2394557f7155f053bf3ff5c8bb4b5e1 (patch)
tree0ca820aded1d3de8372315dce45828958f12ec86 /src
parent3ed57be450e35c3a3aaa99af722b615a989027c7 (diff)
downloadpacman-ee960048b2394557f7155f053bf3ff5c8bb4b5e1.tar.xz
Remove notification of system upgrade when only printing URLs
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/sync.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 041b6b21..8ac5f570 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -694,9 +694,11 @@ static int sync_trans(alpm_list_t *targets)
}
if(config->op_s_upgrade) {
- colon_printf(_("Starting full system upgrade...\n"));
- alpm_logaction(config->handle, PACMAN_CALLER_PREFIX,
- "starting full system upgrade\n");
+ if(!config->print) {
+ colon_printf(_("Starting full system upgrade...\n"));
+ alpm_logaction(config->handle, PACMAN_CALLER_PREFIX,
+ "starting full system upgrade\n");
+ }
if(alpm_sync_sysupgrade(config->handle, config->op_s_upgrade >= 2) == -1) {
pm_printf(ALPM_LOG_ERROR, "%s\n", alpm_strerror(alpm_errno(config->handle)));
trans_release();