Skip to content

Commit 9ad7e0c

Browse files
committed
trivial: Allow the firmware version to be set when using fwupdtool install-blob
1 parent f44bab0 commit 9ad7e0c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/fu-tool.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,10 @@ fu_util_install_blob(FuUtil *self, gchar **values, GError **error)
10881088
return FALSE;
10891089
}
10901090

1091+
/* optional version */
1092+
if (g_strv_length(values) >= 3)
1093+
fu_release_set_version(release, values[2]);
1094+
10911095
self->current_operation = FU_UTIL_OPERATION_INSTALL;
10921096
g_signal_connect(FU_ENGINE(self->engine),
10931097
"device-changed",
@@ -5296,7 +5300,7 @@ main(int argc, char *argv[])
52965300
fu_util_cmd_array_add(cmd_array,
52975301
"install-blob",
52985302
/* TRANSLATORS: command argument: uppercase, spaces->dashes */
5299-
_("FILENAME DEVICE-ID"),
5303+
_("FILENAME DEVICE-ID [VERSION]"),
53005304
/* TRANSLATORS: command description */
53015305
_("Install a raw firmware blob on a device"),
53025306
fu_util_install_blob);

0 commit comments

Comments
 (0)