goto exit;
}
if (spec->BANames && !spec->recursing) {
- /* Ignore BuildArch tags for anyarch actions */
- if (spec->anyarch) {
- spec->BANames = _free(spec->BANames);
- spec->BACount = 0;
- } else {
- res = PART_BUILDARCHITECTURES;
- goto exit;
- }
+ res = PART_BUILDARCHITECTURES;
+ goto exit;
}
}
if ((rc =
addMacro(spec->macros, "buildroot", NULL, spec->buildRoot, RMIL_SPEC);
}
- /* This check is harmless as BuildArch tags are ignored in case of anyarch != 0 */
- if (checkForValidArchitectures(spec)) {
+ /* XXX Skip valid arch check if not building binary package */
+ if (!spec->anyarch && checkForValidArchitectures(spec)) {
goto exit;
}