From 46324d9b26bd4bf5624dd8743bcd2b8f9dc5616d Mon Sep 17 00:00:00 2001 From: Patrick Eigensatz Date: Fri, 7 Oct 2016 21:45:07 +0200 Subject: Give a "success!" message on database check 'pacman -Dk' prints a "success!" message if there were no errors. It is possible to suppress the output using the '-q / --quiet' flag. This implements the feature discussed at https://bugs.archlinux.org/task/50087 Signed-off-by: Patrick Eigensatz Signed-off-by: Allan McRae --- src/pacman/database.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pacman/database.c') diff --git a/src/pacman/database.c b/src/pacman/database.c index 01979034..3990ea2e 100644 --- a/src/pacman/database.c +++ b/src/pacman/database.c @@ -286,6 +286,10 @@ int pacman_database(alpm_list_t *targets) } else { ret = check_db_sync(); } + + if(ret == 0 && !config->quiet) { + printf(_("No database errors have been found!\n")); + } } if(config->flags & (ALPM_TRANS_FLAG_ALLDEPS | ALPM_TRANS_FLAG_ALLEXPLICIT)) { -- cgit v1.2.3-24-g4f1b