X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Goalfile;h=d9866f1d4257360b5263d4e5ea892571cc280053;hb=d16530e3685ae1d1e1689f98e45026c6b8846c7b;hp=1c96dd4ba8f0042bf3a9e80d528cc2224509cebf;hpb=5d5f97d20df3556e8e82405d9dfc5b476df07afe;p=fedora-ocaml-rebuild.git diff --git a/Goalfile b/Goalfile index 1c96dd4..d9866f1 100644 --- a/Goalfile +++ b/Goalfile @@ -225,7 +225,10 @@ pure function get-source-packages () returning strings = { spec=$pkg/%fedora-branch/$pkg.spec if [ -f $spec ]; then # Check that the spec file excludes i686. - if ! rpmspec -P $spec | grep -sq 'ExcludeArch:.*i386' ; then + # Only implement this check for ocaml-* packages, as the + # other packages are more complicated. + if [[ "$spec" =~ ^ocaml ]] && + ! rpmspec -P $spec | grep -sq 'ExcludeArch:.*i386' ; then echo "ERROR: $pkg does not ExcludeArch: %%{ix86}" >&2 exit 1 fi