mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 00:38:35 +00:00
Install all devices with the same composite id in fwupdtool
This commit is contained in:
parent
620726c47a
commit
8b0c057f8f
@ -1258,7 +1258,13 @@ fu_util_install(FuUtilPrivate *priv, gchar **values, GError **error)
|
||||
if (!fu_util_prompt_warning_fde(FWUPD_DEVICE(device), error))
|
||||
return FALSE;
|
||||
}
|
||||
devices_possible = g_ptr_array_new_with_free_func((GDestroyNotify)g_object_unref);
|
||||
devices_possible =
|
||||
fu_engine_get_devices_by_composite_id(priv->engine,
|
||||
fu_device_get_composite_id(device),
|
||||
error);
|
||||
if (devices_possible == NULL)
|
||||
return FALSE;
|
||||
|
||||
g_ptr_array_add(devices_possible, device);
|
||||
} else {
|
||||
g_set_error_literal(error,
|
||||
@ -3626,7 +3632,8 @@ main(int argc, char *argv[])
|
||||
/* TRANSLATORS: command argument: uppercase, spaces->dashes */
|
||||
_("FILE [DEVICE-ID|GUID]"),
|
||||
/* TRANSLATORS: command description */
|
||||
_("Install a firmware file on this hardware"),
|
||||
_("Install a specific firmware on a device, all possible devices"
|
||||
" will also be installed once the CAB matches"),
|
||||
fu_util_install);
|
||||
fu_util_cmd_array_add(cmd_array,
|
||||
"reinstall",
|
||||
|
@ -4229,7 +4229,8 @@ main(int argc, char *argv[])
|
||||
/* TRANSLATORS: command argument: uppercase, spaces->dashes */
|
||||
_("[DEVICE-ID|GUID] [VERSION]"),
|
||||
/* TRANSLATORS: command description */
|
||||
_("Install a specific firmware version on a device"),
|
||||
_("Install a specific firmware on a device, all possible devices"
|
||||
" will also be installed once the CAB matches"),
|
||||
fu_util_install);
|
||||
fu_util_cmd_array_add(cmd_array,
|
||||
"local-install",
|
||||
|
Loading…
Reference in New Issue
Block a user