From 9213c5c7bf4ae810bb10b7e8ba36d3c9c7b094fd Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Sun, 6 Oct 2019 22:19:47 -0500 Subject: [PATCH] trivial: fu-util: don't show warnings for no reports to upload ``` (fwupdmgr:5605): FuMain-WARNING **: 22:16:06.048: No reports require uploading ``` --- src/fu-util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fu-util.c b/src/fu-util.c index be7dfe9db..1f01e25b8 100644 --- a/src/fu-util.c +++ b/src/fu-util.c @@ -1801,7 +1801,10 @@ fu_util_maybe_send_reports (FuUtilPrivate *priv, const gchar *remote_id, return FALSE; if (fwupd_remote_get_automatic_reports (remote)) { if (!fu_util_report_history (priv, NULL, &error_local)) - g_warning ("%s", error_local->message); + if (!g_error_matches (error_local, + FWUPD_ERROR, + FWUPD_ERROR_NOT_SUPPORTED)) + g_warning ("%s", error_local->message); } return TRUE;