[Rpm-maint] [rpm-software-management/rpm] Implement openpgp.cert.d based keystore (PR #3437)

Florian Festi notifications at github.com
Fri Nov 8 14:28:18 UTC 2024


@ffesti commented on this pull request.



>  
-    if (replace) {
-	rasprintf(&tmppath, "%s.new", path);
-	unlink(tmppath);
+    rc = write_key_to_disk(key, dirstr, keyfmt, replace, flags);
+
+    if (!rc && replace) {
+	/* find and delete the old pubkey entry */

The patch obscures that this is actually old code. This is about converting from the old (short keyids based) file names to new (fingerprint based) filenames. Here we are just deleting the old file which is now redundant.

The merging of the keys does happen - it just doesn't happen here.

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

Message ID: <rpm-software-management/rpm/pull/3437/review/2423956306 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241108/357818f0/attachment.html>


More information about the Rpm-maint mailing list