Remove redundant anyarch check
authorJindrich Novy <jnovy@redhat.com>
Tue, 13 Jan 2009 18:28:47 +0000 (19:28 +0100)
committerJindrich Novy <jnovy@redhat.com>
Tue, 13 Jan 2009 18:28:47 +0000 (19:28 +0100)
build/parsePreamble.c

index 7bf0c13..c34f80d 100644 (file)
@@ -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;
     }