On 02/17/2017 10:26 AM, Mátyás Selmeci wrote:
Hi,
We have a build tag named dist-el7-build that contains two external
repos: dist-el7-centos73, which contains the base OS packages for CentOS
7, and dist-el7-centos73-updates which contains updated packages for
CentOS 7. Normally, we would like the packages from
dist-el7-centos73-updates to take precedence since they're newer, but
not for a specific package, selinux-policy.
Is there a way I can keep selinux-policy from being brought in from
dist-el7-centos73-updates? I didn't see a way to do that by editing the
external repo definiton, so my idea is this:
1. Create a new tag named el7-updates that contains just the
dist-el7-centos73-updates external repo
2. Have dist-el7-build inherit from el7-updates, but use --pkg-filter to
somehow exclude selinux-policy; I'm not sure about that, though,
since I don't know if --pkg-filter is inclusive or exclusive
Would that work? Do you have better suggestions?
Builds from within the koji tag itself will always win over the external
repos. If you want to override selinux-policy, then do that in your
build tag.
pkg-filter does not apply to external repos