Remove notification of system upgrade when only printing URLs

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2016-03-29 20:21:42 +10:00
parent 3ed57be450
commit ee960048b2

View file

@ -694,9 +694,11 @@ static int sync_trans(alpm_list_t *targets)
} }
if(config->op_s_upgrade) { if(config->op_s_upgrade) {
if(!config->print) {
colon_printf(_("Starting full system upgrade...\n")); colon_printf(_("Starting full system upgrade...\n"));
alpm_logaction(config->handle, PACMAN_CALLER_PREFIX, alpm_logaction(config->handle, PACMAN_CALLER_PREFIX,
"starting full system upgrade\n"); "starting full system upgrade\n");
}
if(alpm_sync_sysupgrade(config->handle, config->op_s_upgrade >= 2) == -1) { 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))); pm_printf(ALPM_LOG_ERROR, "%s\n", alpm_strerror(alpm_errno(config->handle)));
trans_release(); trans_release();