mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 06:52:20 +00:00
trivial: Be more selective when choosing devices to update
This commit is contained in:
parent
35417dcebd
commit
0c052d4417
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user