Ignore BuildArch tags for anyarch actions (rhbz#442105)
authorJindrich Novy <jnovy@redhat.com>
Mon, 12 Jan 2009 15:15:27 +0000 (16:15 +0100)
committerJindrich Novy <jnovy@redhat.com>
Mon, 12 Jan 2009 15:22:38 +0000 (16:22 +0100)
build/parsePreamble.c

index 3309177..37526d6 100644 (file)
@@ -859,8 +859,14 @@ int parsePreamble(rpmSpec spec, int initialPackage)
                    goto exit;
                }
                if (spec->BANames && !spec->recursing) {
-                   res = PART_BUILDARCHITECTURES;
-                   goto exit;
+                   /* Ignore BuildArch tags for anyarch actions */
+                   if (spec->anyarch) {
+                       spec->BANames = _free(spec->BANames);
+                       spec->BACount = 0;
+                   } else {
+                       res = PART_BUILDARCHITECTURES;
+                       goto exit;
+                   }
                }
            }
            if ((rc =