diff options
author | Jean Raby <jean@raby.sh> | 2022-03-07 12:18:13 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2022-06-25 22:45:00 +1000 |
commit | 6daeb37fe8a49e507ab4416df25506633bedb6ae (patch) | |
tree | c16f941a5e8028553748d20f4a6c309975adbb0a | |
parent | 776b7c1e75f24b9cab86b797c1acf549c7da2c46 (diff) |
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>
-rw-r--r-- | src/pacman/upgrade.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pacman/upgrade.c b/src/pacman/upgrade.c index 0691856f..279609a4 100644 --- a/src/pacman/upgrade.c +++ b/src/pacman/upgrade.c @@ -99,7 +99,9 @@ int pacman_upgrade(alpm_list_t *targets) goto fail_free; } - printf(_("loading packages...\n")); + 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)); |