diff --git a/lib/rpmte.cc b/lib/rpmte.cc index 6b98918752..cce595bb1e 100644 --- a/lib/rpmte.cc +++ b/lib/rpmte.cc @@ -159,8 +159,7 @@ static int addTE(rpmte p, Header h, fnpyKey key, rpmRelocation * relocs) 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) goto exit; p->isSource = headerIsSource(h);