mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 15:57:38 +00:00
Allow specifying <firmware>GUID</firmware> to check any version exists
If the version is not specified then treat it as just 'exists'.
This commit is contained in:
parent
7b32e5f01f
commit
aaf0ce788f
@ -1096,7 +1096,8 @@ fu_engine_check_requirement_firmware (FuEngine *self, XbNode *req,
|
|||||||
|
|
||||||
/* get the version of the other device */
|
/* get the version of the other device */
|
||||||
version = fu_device_get_version (device2);
|
version = fu_device_get_version (device2);
|
||||||
if (!fu_engine_require_vercmp (req, version, &error_local)) {
|
if (version != NULL &&
|
||||||
|
!fu_engine_require_vercmp (req, version, &error_local)) {
|
||||||
if (g_strcmp0 (xb_node_get_attr (req, "compare"), "ge") == 0) {
|
if (g_strcmp0 (xb_node_get_attr (req, "compare"), "ge") == 0) {
|
||||||
g_set_error (error,
|
g_set_error (error,
|
||||||
FWUPD_ERROR,
|
FWUPD_ERROR,
|
||||||
|
Loading…
Reference in New Issue
Block a user