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

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