git.annexia.org
/
fedora-ocaml-rebuild.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d5f97d
)
Restrict ExcludeArch check to just ocaml* packages
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 11 Jul 2023 18:50:15 +0000
(19:50 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 11 Jul 2023 18:50:15 +0000
(19:50 +0100)
Goalfile
patch
|
blob
|
history
diff --git
a/Goalfile
b/Goalfile
index
1c96dd4
..
d9866f1
100644
(file)
--- 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