pacman: silence "info" msg when using --print

This allows for parsing the output of:
    pacman --upgrade --print-format '<format>' pkg.zst

without having to remove info messages from it.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Jean Raby 2022-03-07 12:18:13 -05:00 committed by Allan McRae
parent 776b7c1e75
commit 6daeb37fe8

View file

@ -99,7 +99,9 @@ int pacman_upgrade(alpm_list_t *targets)
goto fail_free;
}
if(!config->print) {
printf(_("loading packages...\n"));
}
retval |= load_packages(local_targets, alpm_option_get_local_file_siglevel(config->handle));
retval |= load_packages(fetched_files, alpm_option_get_remote_file_siglevel(config->handle));