Blame SOURCES/0002-Make-quiet-exit-on-missing-PK-KEK-not-return-error-s.patch

089977
From 946380463bb9a233381fc122a8374806d77b1778 Mon Sep 17 00:00:00 2001
089977
From: Peter Jones <pjones@redhat.com>
089977
Date: Mon, 23 Oct 2017 09:45:48 -0400
089977
Subject: [PATCH 2/2] Make quiet exit on missing PK/KEK not return error
089977
 status.
089977
089977
Signed-off-by: Peter Jones <pjones@redhat.com>
089977
---
089977
 src/dbxtool.c | 7 ++++---
089977
 1 file changed, 4 insertions(+), 3 deletions(-)
089977
089977
diff --git a/src/dbxtool.c b/src/dbxtool.c
089977
index 717c991..b2cb587 100644
089977
--- a/src/dbxtool.c
089977
+++ b/src/dbxtool.c
089977
@@ -541,13 +541,14 @@ check_pk_and_kek(bool force, bool quiet)
089977
 		}
089977
 	}
089977
 	if (!all_found) {
089977
-		if (!quiet) {
089977
+		if (quiet) {
089977
+			if (!force)
089977
+				exit(0);
089977
+		} else {
089977
 			if (!force)
089977
 				errx(1, "Not attempting to apply updates.");
089977
 			warnx("attempting to apply updates anyway.");
089977
 		}
089977
-		if (!force)
089977
-			exit(1);
089977
 	}
089977
 }
089977
 
089977
-- 
089977
2.14.2
089977