Drop deprecated RPMTAG_RHNPLATFORM support
This commit is contained in:
parent
9d17c0b879
commit
26545f3846
@ -30,7 +30,6 @@ static rpmTag copyTagsDuringParse[] = {
|
||||
RPMTAG_CHANGELOGTEXT,
|
||||
RPMTAG_PREFIXES,
|
||||
RPMTAG_BUILDHOST,
|
||||
RPMTAG_RHNPLATFORM,
|
||||
0
|
||||
};
|
||||
|
||||
@ -506,7 +505,6 @@ static int handlePreambleTag(Spec spec, Package pkg, int tag, const char *macro,
|
||||
case RPMTAG_VERSION:
|
||||
case RPMTAG_RELEASE:
|
||||
case RPMTAG_URL:
|
||||
case RPMTAG_RHNPLATFORM:
|
||||
SINGLE_TOKEN_ONLY;
|
||||
/* These macros are for backward compatibility */
|
||||
if (tag == RPMTAG_VERSION) {
|
||||
@ -749,7 +747,6 @@ static struct PreambleRec_s preambleList[] = {
|
||||
{RPMTAG_AUTOREQ, 0, 0, "autoreq"},
|
||||
{RPMTAG_AUTOPROV, 0, 0, "autoprov"},
|
||||
{RPMTAG_DOCDIR, 0, 0, "docdir"},
|
||||
{RPMTAG_RHNPLATFORM, 0, 0, "rhnplatform"},
|
||||
/*@-nullassign@*/ /* LCL: can't add null annotation */
|
||||
{0, 0, 0, 0}
|
||||
/*@=nullassign@*/
|
||||
|
@ -870,9 +870,6 @@ fprintf(stderr, "*** PS buildRootURL(%s) %p macro set to %s\n", spec->buildRootU
|
||||
headerAddEntry(pkg->header, RPMTAG_ARCH, RPM_STRING_TYPE, arch, 1);
|
||||
else
|
||||
assert(pkg != spec->packages); /* noarch subpackage */
|
||||
if (!headerIsEntry(pkg->header, RPMTAG_RHNPLATFORM))
|
||||
(void) headerAddEntry(pkg->header, RPMTAG_RHNPLATFORM,
|
||||
RPM_STRING_TYPE, arch, 1);
|
||||
(void) headerAddEntry(pkg->header, RPMTAG_PLATFORM,
|
||||
RPM_STRING_TYPE, platform, 1);
|
||||
}
|
||||
|
@ -362,14 +362,6 @@ static PyObject * rhnUnload(hdrObject * s, PyObject * args) {
|
||||
|
||||
h = headerLink(s->h);
|
||||
|
||||
/* Retrofit a RHNPlatform: tag. */
|
||||
if (!headerIsEntry(h, RPMTAG_RHNPLATFORM)) {
|
||||
const char * arch;
|
||||
int_32 at;
|
||||
if (headerGetEntry(h, RPMTAG_ARCH, &at, (void **)&arch, NULL))
|
||||
headerAddEntry(h, RPMTAG_RHNPLATFORM, at, arch, 1);
|
||||
}
|
||||
|
||||
/* Legacy headers are forced into immutable region. */
|
||||
if (!headerIsEntry(h, RPMTAG_HEADERIMMUTABLE)) {
|
||||
Header nh = headerReload(h, RPMTAG_HEADERIMMUTABLE);
|
||||
@ -823,14 +815,6 @@ PyObject * rhnLoad(PyObject * self, PyObject * args) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Retrofit a RHNPlatform: tag. */
|
||||
if (!headerIsEntry(hdr, RPMTAG_RHNPLATFORM)) {
|
||||
const char * arch;
|
||||
int_32 at;
|
||||
if (headerGetEntry(hdr, RPMTAG_ARCH, &at, (void **)&arch, NULL))
|
||||
headerAddEntry(hdr, RPMTAG_RHNPLATFORM, at, arch, 1);
|
||||
}
|
||||
|
||||
h = createHeaderObject(hdr);
|
||||
|
||||
return (PyObject *) h;
|
||||
|
Loading…
Reference in New Issue
Block a user