rpmRC rc = RPMRC_FAIL; /* assume failure */
switch (tagN) {
+ default:
+ case RPMTAG_REQUIREFLAGS:
+ nametag = RPMTAG_REQUIRENAME;
+ tagflags |= RPMSENSE_ANY;
+ h = pkg->header;
+ break;
case RPMTAG_PROVIDEFLAGS:
nametag = RPMTAG_PROVIDENAME;
h = pkg->header;
nametag = RPMTAG_CONFLICTNAME;
h = pkg->header;
break;
- case RPMTAG_BUILDCONFLICTS:
- nametag = RPMTAG_CONFLICTNAME;
- h = spec->buildRestrictions;
- break;
case RPMTAG_PREREQ:
/* XXX map legacy PreReq into Requires(pre,preun) */
nametag = RPMTAG_REQUIRENAME;
tagflags |= RPMSENSE_ANY;
h = spec->buildRestrictions;
break;
- default:
- case RPMTAG_REQUIREFLAGS:
- nametag = RPMTAG_REQUIRENAME;
- tagflags |= RPMSENSE_ANY;
- h = pkg->header;
+ case RPMTAG_BUILDCONFLICTS:
+ nametag = RPMTAG_CONFLICTNAME;
+ h = spec->buildRestrictions;
break;
}