From: Michael Tremer Date: Wed, 8 Dec 2021 16:24:27 +0000 (+0000) Subject: pakfire: Add some useful output and return code to "check" X-Git-Tag: 0.9.28~856 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33b709ee743d5ab744ab6edaac9bc1fb3cc1b49d;p=pakfire.git pakfire: Add some useful output and return code to "check" Signed-off-by: Michael Tremer --- diff --git a/src/scripts/pakfire.in b/src/scripts/pakfire.in index 4e5f6f764..a9afd8784 100644 --- a/src/scripts/pakfire.in +++ b/src/scripts/pakfire.in @@ -271,7 +271,17 @@ class Cli(object): sys.exit(ret or 0) def _check(self, p, args): - p.check() + """ + Checks if this installation is properly intact + """ + r = p.check() + + if r: + print(_("Problems have been detected. Please run 'sync' to try to fix them.")) + else: + print(_("OK")) + + return r def _clean(self, p, args): print(_("Cleaning up everything..."))