From 0c052d44173d35b7efb548c1c04b3873b4594ec5 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 1 Apr 2022 11:39:48 +0100 Subject: [PATCH] trivial: Be more selective when choosing devices to update --- src/fu-tool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fu-tool.c b/src/fu-tool.c index e8376a2f1..f7d9036b4 100644 --- a/src/fu-tool.c +++ b/src/fu-tool.c @@ -941,6 +941,7 @@ fu_util_install_blob(FuUtilPrivate *priv, gchar **values, GError **error) return FALSE; /* get device */ + priv->filter_include |= FWUPD_DEVICE_FLAG_UPDATABLE; if (g_strv_length(values) >= 2) { device = fu_util_get_device(priv, values[1], error); if (device == NULL) @@ -2591,6 +2592,7 @@ fu_util_verify_update(FuUtilPrivate *priv, gchar **values, GError **error) return FALSE; /* get device */ + priv->filter_include |= FWUPD_DEVICE_FLAG_UPDATABLE; if (g_strv_length(values) == 1) { dev = fu_util_get_device(priv, values[0], error); if (dev == NULL)