]> git.ipfire.org Git - pakfire.git/commitdiff
linter: Return a non-zero error code if we found errors
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Oct 2024 10:54:15 +0000 (10:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Oct 2024 10:54:15 +0000 (10:54 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/linter.c

index 4b1f49aed5ad8e16216c24784dc2e3d59e372f04..d0deeec6f2146d8b7a1c8fc58a591624e244d109 100644 (file)
@@ -609,5 +609,6 @@ int pakfire_linter_lint(struct pakfire_linter* linter) {
        if (r < 0)
                return r;
 
-       return 0;
+       // Return how many errors we had
+       return linter->stats.errors;
 }