mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-04 05:26:58 +00:00
fu-keyring-utils: Don't fail missing PKI directory when compiled with GPG/PKCS7
This directory won't be installed when compiled without those.
This commit is contained in:
parent
769f990cf6
commit
19968a756d
@ -135,6 +135,7 @@ fu_keyring_get_release_trust_flags (XbNode *release,
|
||||
/* check we were installed correctly */
|
||||
sysconfdir = fu_common_get_path (FU_PATH_KIND_SYSCONFDIR);
|
||||
pki_dir = g_build_filename (sysconfdir, "pki", PACKAGE_NAME, NULL);
|
||||
#if defined(ENABLE_PKCS7) || defined(ENABLE_PKCS7)
|
||||
if (!g_file_test (pki_dir, G_FILE_TEST_EXISTS)) {
|
||||
g_set_error (error,
|
||||
FWUPD_ERROR,
|
||||
@ -142,6 +143,7 @@ fu_keyring_get_release_trust_flags (XbNode *release,
|
||||
"PKI directory %s not found", pki_dir);
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* verify against the system trusted keys */
|
||||
kr = fu_keyring_create_for_kind (keyring_kind, error);
|
||||
|
Loading…
Reference in New Issue
Block a user