yum fails to import my own GPG key automatically (I package some stuff for Fedora, and I have setup my own yum repo). It fails with the error "GPG key parsing failed: can't set attribute", which appears to be an exception generated by "self.user_id = user_id[0].id" in the load() method of the gpg_certificate() class. The code has probably been modified in the "if self.version == 3" part, but not in the "self.version == 4" part. Moreover, there's another place where "self.user_id = user_id[0].id" occurs in the "self.version == 3" part, around line 889. This one didn't cause problem for me, but it's probably worth fixing it too.
Created attachment 277031 [details] suggested patch this patch works for me.
Can you attach a copy of the public key so I can take a look?
Created attachment 277041 [details] gpg key causing the problem
agreed about your patch - this appears to be a not-often-hit problem. I'll apply your patch but one thing - that gpg key is expired.
I have just hit the same bug and fixed it locally in the same way :-) It was caused by GPG keys with multiple identities. My GPG key has two uids. The problem might have been hit more often than we think. People hitting it may have not realized it was a bug and they worked-around it using rpm --import.
I just hit this bug with yum-3.2.8-2.fc8 in F8. Applying the patch above by hand resolved the issue.