}
/* XXX Always add source headers. */
- isSource = headerIsEntry(h, RPMTAG_SOURCEPACKAGE);
+ isSource = headerIsSource(h);
if (isSource) {
oc = ts->orderCount;
goto addheader;
case RPMRC_NOTTRUSTED:
case RPMRC_NOKEY:
case RPMRC_OK:
- isSource = headerIsEntry(h, RPMTAG_SOURCEPACKAGE);
+ isSource = headerIsSource(h);
if (isSource)
goto bottom;
break;
compressFilelist(h);
/* XXX binary rpms always have RPMTAG_SOURCERPM, source rpms do not */
- if (!headerIsEntry(h, RPMTAG_SOURCERPM)) {
+ if (headerIsSource(h)) {
int32_t one = 1;
if (!headerIsEntry(h, RPMTAG_SOURCEPACKAGE))
(void) headerAddEntry(h, RPMTAG_SOURCEPACKAGE, RPM_INT32_TYPE,
rpmrc = RPMRC_OK;
- isSource = headerIsEntry(h, RPMTAG_SOURCEPACKAGE);
+ isSource = headerIsSource(h);
if (!isSource) {
rpmlog(RPMLOG_ERR, _("source package expected, binary found\n"));
if (ts != NULL)
if (fi != NULL)
if ((p = rpmtsRelocateElement(ts)) != NULL && rpmteType(p) == TR_ADDED
- && !headerIsEntry(h, RPMTAG_SOURCEPACKAGE)
+ && !headerIsSource(h)
&& !headerIsEntry(h, RPMTAG_ORIGBASENAMES))
{
const char * fmt = rpmGetPath("%{?_autorelocate_path}", NULL);
break;
}
- eiu->isSource = headerIsEntry(eiu->h, RPMTAG_SOURCEPACKAGE);
+ eiu->isSource = headerIsSource(eiu->h);
if (eiu->isSource) {
rpmlog(RPMLOG_DEBUG, _("\tadded source package [%d]\n"),
p->os = NULL;
p->osScore = 0;
}
- p->isSource = headerIsEntry(h, RPMTAG_SOURCEPACKAGE);
+ p->isSource = headerIsSource(h);
nb = strlen(p->NEVR) + 1;
if (p->isSource)