mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-28 02:00:33 +00:00
trivial: Speed up coldplug by respecting REQUEST_KIND_ONLY_SUPPORTED
This commit is contained in:
parent
52551999fb
commit
ece449f0b6
@ -5894,6 +5894,11 @@ fu_engine_add_releases_for_device_component(FuEngine *self,
|
|||||||
|
|
||||||
/* success */
|
/* success */
|
||||||
g_ptr_array_add(releases, g_steal_pointer(&release));
|
g_ptr_array_add(releases, g_steal_pointer(&release));
|
||||||
|
|
||||||
|
/* if we're only checking for SUPPORTED then *any* release is good enough */
|
||||||
|
if (fu_engine_request_get_kind(request) == FU_ENGINE_REQUEST_KIND_ONLY_SUPPORTED &&
|
||||||
|
releases->len > 0)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* success */
|
/* success */
|
||||||
@ -5988,6 +5993,11 @@ fu_engine_get_releases_for_device(FuEngine *self,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* if we're only checking for SUPPORTED then *any* release is good enough */
|
||||||
|
if (fu_engine_request_get_kind(request) == FU_ENGINE_REQUEST_KIND_ONLY_SUPPORTED &&
|
||||||
|
releases->len > 0)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* are there multiple branches available */
|
/* are there multiple branches available */
|
||||||
|
Loading…
Reference in New Issue
Block a user