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

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