[Rpm-maint] [rpm-software-management/rpm] rpmKeyring: Support keys with the same key ID (PR #3398)
Panu Matilainen
notifications at github.com
Thu Oct 24 06:58:24 UTC 2024
@pmatilai commented on this pull request.
> free(lints);
}
- if (keyptr) {
- *keyptr = pubkeyPrimarykey(key);
+
+ for (auto const & item : results) {
+ if (((rc == RPMRC_OK) == (item.first == RPMRC_OK))
Just a side-remark as I think clearing the results on OK is a better solution here, but such code can usually be made far more readable by giving the complex condition a human understandable name. Eg this might be something like
```
bool relevant_result = ((rc == RPMRC_OK) == (item.first == RPMRC_OK));
if (relevant_result && !item.second.empty)
rpmlog()...
```
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3398#pullrequestreview-2391490191
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3398/review/2391490191 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241023/590116cb/attachment-0001.html>
More information about the Rpm-maint
mailing list