mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 10:22:17 +00:00
trivial: Do not inform if no fwupd::ReleaseFlags were set
This is never set in the AppStream metadata, and means that every call to fu_engine_ensure_device_supported() at startup does not generate 16x debugs. For cab archives we know if the archive was unsigned as we show the flags in the to_string() output.
This commit is contained in:
parent
e9ada9ed72
commit
61a2dbad13
@ -30,10 +30,8 @@ fu_keyring_get_release_flags (XbNode *release,
|
|||||||
GBytes *blob;
|
GBytes *blob;
|
||||||
|
|
||||||
blob = g_object_get_data (G_OBJECT (release), "fwupd::ReleaseFlags");
|
blob = g_object_get_data (G_OBJECT (release), "fwupd::ReleaseFlags");
|
||||||
if (blob == NULL) {
|
if (blob == NULL)
|
||||||
g_debug ("no fwupd::ReleaseFlags set by loader");
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
|
||||||
if (g_bytes_get_size (blob) != sizeof(FwupdReleaseFlags)) {
|
if (g_bytes_get_size (blob) != sizeof(FwupdReleaseFlags)) {
|
||||||
g_set_error_literal (error,
|
g_set_error_literal (error,
|
||||||
FWUPD_ERROR,
|
FWUPD_ERROR,
|
||||||
|
Loading…
Reference in New Issue
Block a user