From: jbj Date: Sat, 7 Nov 1998 22:05:28 +0000 (+0000) Subject: check arch only on RPMBUILD_{PREP,BUILD,INSTALL,PACKAGEBINARY}. X-Git-Tag: rpm-4.4-release~3345 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=886d61a91e41156e5f241a096b85cd8a2c62d2ab;p=platform%2Fupstream%2Frpm.git check arch only on RPMBUILD_{PREP,BUILD,INSTALL,PACKAGEBINARY}. CVS patchset: 2527 CVS date: 1998/11/07 22:05:28 --- 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;