summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'build.c')
-rw-r--r--build.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/build.c b/build.c
index dfd7a6779..23ad4f99a 100644
--- a/build.c
+++ b/build.c
@@ -129,9 +129,13 @@ int buildplatform(char *arg, int buildAmount, char *passPhrase,
s++;
}
- if (parseSpec(&spec, specfile, buildRoot, 0, passPhrase, cookie)) {
- return 1;
+#define _anyarch(_f) \
+(((_f)&(RPMBUILD_PACKAGESOURCE|RPMBUILD_PACKAGEBINARY)) == RPMBUILD_PACKAGESOURCE)
+ if (parseSpec(&spec, specfile, buildRoot, 0, passPhrase, cookie,
+ _anyarch(buildAmount))) {
+ return 1;
}
+#undef _anyarch
if (buildSpec(spec, buildAmount, test)) {
freeSpec(spec);