From 97459e9eb786f44f45837ac3e62639e9ebd3a09c Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Fri, 2 Dec 2016 15:57:18 +1000 Subject: Suppress more output messages on successful -D options with -q Suppress output on successful use of --asdeps and --asexplicit. Signed-off-by: Allan McRae --- src/pacman/database.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/pacman/database.c b/src/pacman/database.c index 3990ea2e..33b13e3f 100644 --- a/src/pacman/database.c +++ b/src/pacman/database.c @@ -74,10 +74,12 @@ static int change_install_reason(alpm_list_t *targets) pkgname, alpm_strerror(alpm_errno(config->handle))); ret = 1; } else { - if(reason == ALPM_PKG_REASON_DEPEND) { - printf(_("%s: install reason has been set to 'installed as dependency'\n"), pkgname); - } else { - printf(_("%s: install reason has been set to 'explicitly installed'\n"), pkgname); + if(!config->quiet) { + if(reason == ALPM_PKG_REASON_DEPEND) { + printf(_("%s: install reason has been set to 'installed as dependency'\n"), pkgname); + } else { + printf(_("%s: install reason has been set to 'explicitly installed'\n"), pkgname); + } } } } -- cgit v1.2.3-70-g09d2