From 886d61a91e41156e5f241a096b85cd8a2c62d2ab Mon Sep 17 00:00:00 2001 From: jbj Date: Sat, 7 Nov 1998 22:05:28 +0000 Subject: [PATCH] check arch only on RPMBUILD_{PREP,BUILD,INSTALL,PACKAGEBINARY}. CVS patchset: 2527 CVS date: 1998/11/07 22:05:28 --- CHANGES | 1 + build.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 5612804..8871d76 100644 --- a/CHANGES +++ b/CHANGES @@ -30,6 +30,7 @@ - there must be a { between two % in a query format (unless %% is used) 2.5.5 -> 2.5.6: + - check arch only on RPMBUILD_{PREP,BUILD,INSTALL,PACKAGEBINARY}. - configure.in: set default value for RPM. (Tim Mooney) - add new Epoch: keyword just like Serial:. - update Russian translation w man pages. diff --git a/build.c b/build.c index c94f6f2..c5abcc4 100644 --- a/build.c +++ b/build.c @@ -129,7 +129,7 @@ int buildplatform(char *arg, int buildAmount, char *passPhrase, } #define _anyarch(_f) \ -(((_f)&(RPMBUILD_PACKAGESOURCE|RPMBUILD_PACKAGEBINARY)) == RPMBUILD_PACKAGESOURCE) +(((_f)&(RPMBUILD_PREP|RPMBUILD_BUILD|RPMBUILD_INSTALL|RPMBUILD_PACKAGEBINARY)) == 0) if (parseSpec(&spec, specfile, buildRoot, 0, passPhrase, cookie, _anyarch(buildAmount))) { return 1; -- 2.7.4