Skip to content
Permalink
Browse files

Only check the vendor ID if the device has one set

This means we don't get a weird error if the metadata sets a vendor-id, but the
device does not.
  • Loading branch information
hughsie committed Dec 10, 2019
1 parent d973e14 commit d5f965da2f8847e494e5c2a25a123bb8c31c7850
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/fu-engine.c
@@ -781,7 +781,8 @@ fu_engine_check_requirements (AsApp *app, FuDevice *device, GError **error)
error)) {
return FALSE;
}
if (!fu_engine_check_version_requirement (app,
if (fu_device_get_vendor_id (device) != NULL &&
!fu_engine_check_version_requirement (app,
AS_REQUIRE_KIND_FIRMWARE,
"vendor-id",
fu_device_get_vendor_id (device),

0 comments on commit d5f965d

Please sign in to comment.
You can’t perform that action at this time.