[pacman-dev] [PATCH] Remove notification of system upgrade when only printing URLs
Signed-off-by: Allan McRae <allan@archlinux.org> --- src/pacman/sync.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 041b6b2..8ac5f57 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(); -- 2.7.4
On 03/29/16 at 08:22pm, Allan McRae wrote:
Signed-off-by: Allan McRae <allan@archlinux.org> --- src/pacman/sync.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
ACK.
participants (2)
-
Allan McRae
-
Andrew Gregory