summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJindrich Novy <jnovy@redhat.com>2009-01-13 19:28:47 +0100
committerJindrich Novy <jnovy@redhat.com>2009-01-13 19:28:47 +0100
commit2f239d1dfa47da51ebc002f1229eecf3c71b3271 (patch)
treeea0aba973e6e64acb5ba8bf7b624ea16084dae38 /build
parentf4c997cac8a9205067a584f03ed7039cd0877b4e (diff)
downloadrpm-2f239d1dfa47da51ebc002f1229eecf3c71b3271.tar.gz
rpm-2f239d1dfa47da51ebc002f1229eecf3c71b3271.tar.bz2
rpm-2f239d1dfa47da51ebc002f1229eecf3c71b3271.zip
Remove redundant anyarch check
Diffstat (limited to 'build')
-rw-r--r--build/parsePreamble.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/parsePreamble.c b/build/parsePreamble.c
index 7bf0c13c1..c34f80dc9 100644
--- a/build/parsePreamble.c
+++ b/build/parsePreamble.c
@@ -901,8 +901,8 @@ int parsePreamble(rpmSpec spec, int initialPackage)
addMacro(spec->macros, "buildroot", NULL, spec->buildRoot, RMIL_SPEC);
}
- /* XXX Skip valid arch check if not building binary package */
- if (!spec->anyarch && checkForValidArchitectures(spec)) {
+ /* This check is harmless as BuildArch tags are ignored in case of anyarch != 0 */
+ if (checkForValidArchitectures(spec)) {
goto exit;
}