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.
This commit is contained in:
Mario Limonciello 2019-10-16 09:46:16 -05:00 committed by Mario Limonciello
parent 50202f5a89
commit 326950cd68

View File

@ -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 */