summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2016-12-02 06:57:18 +0100
committerAllan McRae <allan@archlinux.org>2016-12-05 06:20:08 +0100
commit97459e9eb786f44f45837ac3e62639e9ebd3a09c (patch)
tree500859a9abc57dd41f1f6c47ecb593862d4aba61
parent46324d9b26bd4bf5624dd8743bcd2b8f9dc5616d (diff)
downloadpacman-97459e9eb786f44f45837ac3e62639e9ebd3a09c.tar.gz
pacman-97459e9eb786f44f45837ac3e62639e9ebd3a09c.tar.xz
Suppress more output messages on successful -D options with -q
Suppress output on successful use of --asdeps and --asexplicit. Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--src/pacman/database.c10
1 files changed, 6 insertions, 4 deletions
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);
+ }
}
}
}