summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1998-09-24 20:36:54 +0000
committerjbj <devnull@localhost>1998-09-24 20:36:54 +0000
commit54b2849f61f86f75c1eb7481c6aa7ebd4acb6284 (patch)
tree16e51226467b4ffb186bc928b495d51a9b86c92c /build.c
parentd6a3e244e0aa5308844623f7973f03bd87dc3aaf (diff)
downloadrpm-54b2849f61f86f75c1eb7481c6aa7ebd4acb6284.tar.gz
rpm-54b2849f61f86f75c1eb7481c6aa7ebd4acb6284.tar.bz2
rpm-54b2849f61f86f75c1eb7481c6aa7ebd4acb6284.zip
skip arch checks if only packaging source rpm.
CVS patchset: 2352 CVS date: 1998/09/24 20:36:54
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);