From 326950cd68d6ef8393bc67c3bfac5aef5c49f4d7 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Wed, 16 Oct 2019 09:46:16 -0500 Subject: [PATCH] trivial: fu-util: break out of automatic reports if one is not automatic Currently this is controlled by the order of remotes enumerated and might return the wrong result with too many remotes. --- src/fu-util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fu-util.c b/src/fu-util.c index 801e383d0..aeed67540 100644 --- a/src/fu-util.c +++ b/src/fu-util.c @@ -345,8 +345,10 @@ fu_util_perhaps_show_unreported (FuUtilPrivate *priv, GError **error) g_debug ("%s is %d", fwupd_remote_get_title (remote), remote_automatic); if (remote_automatic && !all_automatic) all_automatic = TRUE; - if (!remote_automatic && all_automatic) + if (!remote_automatic && all_automatic) { all_automatic = FALSE; + break; + } } /* check that they can be reported */