@pmatilai commented on this pull request.


>  
     p->epoch = headerGetAsString(h, RPMTAG_EPOCH);
 
     p->arch = headerGetAsString(h, RPMTAG_ARCH);
     p->os = headerGetAsString(h, RPMTAG_OS);
 
-    /* gpg-pubkey's dont have os or arch (sigh), for others they are required 
*/
-    if (!rstreq(p->name, "gpg-pubkey") && (p->arch == NULL || p->os == NULL))
+    if (p->arch == NULL || p->os == NULL) {
+       if (p->type == TR_REMOVED && rstreq(p->name, "gpg-pubkey")) {
+           rpmlog(RPMLOG_WARNING, "Erasing gpg-pubkey packages is deprecated! 
Use rpmkeys.\n");

We could take the opportunity to be helpful and give the actual rpmkeys command 
to use here. 
But don't use exclamation marks in messages, it just doesn't belong - the 
computer is not yelling at you, it's just stating a fact. Certainly not in a 
harmless situation like this.

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

Message ID: <rpm-software-management/rpm/pull/3478/review/2472038...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to