}
/* XXX Skip valid arch check if not building binary package */
- if (!spec->anyarch && checkForValidArchitectures(spec)) {
+ if (!(spec->flags & RPMSPEC_ANYARCH) && checkForValidArchitectures(spec)) {
goto exit;
}
fn = rpmGetPath("%{_sourcedir}/", sp->source, NULL);
/* On non-build parse's, file cannot be stat'd or read. */
- if (spec->force || checkOwners(fn)) goto exit;
+ if ((spec->flags & RPMSPEC_FORCE) || checkOwners(fn)) goto exit;
if (db) {
rasprintf(&arg_backup,
#endif
/* XXX On non-build parse's, file cannot be stat'd or read */
- if (!spec->force && (rpmFileIsCompressed(fn, &compressed) || checkOwners(fn))) {
+ if (!(spec->flags & RPMSPEC_FORCE) && (rpmFileIsCompressed(fn, &compressed) || checkOwners(fn))) {
fn = _free(fn);
return NULL;
}
} else {
appendLineStringBuf(spec->prep, *lines);
}
- if (res && !spec->force) {
+ if (res && !(spec->flags & RPMSPEC_FORCE)) {
/* fixup from RPMRC_FAIL do*Macro() codes for now */
nextPart = PART_ERROR;
goto exit;
}
addMacro(NULL, "_docdir", NULL, "%{_defaultdocdir}", RMIL_SPEC);
spec->recursing = recursing;
- spec->anyarch = (flags & RPMSPEC_ANYARCH);
- spec->force = (flags & RPMSPEC_FORCE);
+ spec->flags = flags;
/* All the parse*() functions expect to have a line pre-read */
/* in the spec's line buffer. Except for parsePreamble(), */