Miro Hrončok wrote: > Is there some idiomatic way of doing this? I came up with: > > ExclusiveArch: %(comm -12 <(echo %{java_arches} | tr ' ' '\n' | sort) \ > <(echo %{my_arches} | tr ' ' '\n' | sort) | tr '\n' ' ') > > Which I consider quite horrible. for a in %{java_arches}; do for b in %{my_arches}; do test $a = $b && echo -n \ $a; done; done may be less horrible, depending on personal preferences. It's no more idiomatic, but gets the job done in one child process instead of 11. The quadratic complexity won't matter for any plausible number of arches. Björn Persson
Attachment:
pgp3JajD030_Q.pgp
Description: OpenPGP digital signatur
_______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue