diff --git a/libdnf5-plugins/expired-pgp-keys/expired-pgp-keys.cpp b/libdnf5-plugins/expired-pgp-keys/expired-pgp-keys.cpp index 3e33fd463..b2dc992e5 100644 --- a/libdnf5-plugins/expired-pgp-keys/expired-pgp-keys.cpp +++ b/libdnf5-plugins/expired-pgp-keys/expired-pgp-keys.cpp @@ -92,17 +92,6 @@ class ExpiryInfoMessage : public libdnf5::Message { int64_t expiration_timestamp; }; -/// Check that GPG is installed to enable querying expired keys later. -static bool is_gpg_installed() { - auto ts = rpmtsCreate(); - rpmdbMatchIterator mi; - mi = rpmtsInitIterator(ts, RPMDBI_PROVIDENAME, "gpg", 0); - bool found = rpmdbNextIterator(mi) != NULL; - rpmdbFreeIterator(mi); - rpmtsFree(ts); - return found; -} - /// Check if the transaction contains any inbound actions. /// This determines if new software is to be installed, which might require downloading a new PGP signing key. static bool any_inbound_action(const libdnf5::base::Transaction & transaction) { @@ -175,11 +164,6 @@ void ExpiredPgpKeys::process_expired_pgp_keys(const libdnf5::base::Transaction & return; } - if (!is_gpg_installed()) { - logger.error("Expired PGP Keys Plugin: GPG is not installed on the system. Aborting..."); - return; - } - if (!any_inbound_action(transaction)) { return; }