Blame SOURCES/0003-Ask-the-user-to-reboot-when-required-if-downgrading.patch

003958
From 4952d5f8bdf8ed801d2a449f589592d0d6356833 Mon Sep 17 00:00:00 2001
003958
From: Richard Hughes <richard@hughsie.com>
003958
Date: Wed, 13 Jan 2021 09:58:16 +0000
003958
Subject: [PATCH 03/11] Ask the user to reboot when required if downgrading
003958
003958
This matches the behaviour of install and reinstall.
003958
---
003958
 src/fu-util.c | 8 +++++++-
003958
 1 file changed, 7 insertions(+), 1 deletion(-)
003958
003958
diff --git src/fu-util.c src/fu-util.c
003958
index 05f429bf..d5936e65 100644
003958
--- src/fu-util.c
003958
+++ src/fu-util.c
003958
@@ -1835,7 +1835,13 @@ fu_util_downgrade (FuUtilPrivate *priv, gchar **values, GError **error)
003958
 	if (!fu_util_maybe_send_reports (priv, remote_id, error))
003958
 		return FALSE;
003958
 
003958
-	return TRUE;
003958
+	/* we don't want to ask anything */
003958
+	if (priv->no_reboot_check) {
003958
+		g_debug ("skipping reboot check");
003958
+		return TRUE;
003958
+	}
003958
+
003958
+	return fu_util_prompt_complete (priv->completion_flags, TRUE, error);
003958
 }
003958
 
003958
 static gboolean
003958
-- 
003958
2.29.2
003958