[Rpm-maint] [rpm-software-management/rpm] Check not configured keystore backends for keys (PR #3539)

Neal H. Walfield notifications at github.com
Fri Jan 31 08:07:37 UTC 2025


@nwalfield commented on this pull request.



> @@ -71,6 +71,19 @@ rpmKeyring rpmKeyringFree(rpmKeyring keyring)
     return NULL;
 }
 
+size_t rpmKeyringSize(rpmKeyring keyring, int count_subkeys)
+{
+    if (!keyring) return 0;
+    rdlock lock(keyring->mutex);
+
+    size_t size = 0;
+    for (auto &pair : keyring->keys) {
+	if (count_subkeys or !pair.second->primarykey)

Your suggestion uses `&&` in place of `or` (instead of `||`).  Was that intentional?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3539#discussion_r1936827506
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3539/review/2585923135 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250131/c3ea0eca/attachment-0001.htm>


More information about the Rpm-maint mailing list