OSInside / kiwi

KIWI - Appliance Builder Next Generation
https://osinside.github.io/kiwi
GNU General Public License v3.0
300 stars 152 forks source link

Add support for arch attr in repository element #2559

Closed schaefi closed 4 months ago

schaefi commented 4 months ago

Allow to provide different repository sections per architecture

Conan-Kudo commented 4 months ago

Do we want to add a test for this in this pull request? This is the repo config snippet I'm working on:

<image>
    <repository type="rpm-md" alias="opensuse-tumbleweed-oss" sourcetype="baseurl" arch="x86_64">
        <source path="https://download.opensuse.org/tumbleweed/repo/oss/">
            <signing key="file:///usr/share/distribution-gpg-keys/opensuse/RPM-GPG-KEY-openSUSE-Tumbleweed"/>
        </source>
    </repository>
    <repository type="rpm-md" alias="opensuse-tumbleweed-oss" sourcetype="baseurl" arch="aarch64">
        <source path="https://download.opensuse.org/ports/aarch64/tumbleweed/repo/oss/">
            <signing key="file:///usr/share/distribution-gpg-keys/opensuse/RPM-GPG-KEY-openSUSE-Tumbleweed"/>
        </source>
    </repository>
</image>
schaefi commented 4 months ago

Do we want to add a test for this in this pull request? This is the repo config snippet I'm working on:

yes we want to test it. Unfortunately I cannot directly use your repo setup for testing in the integration test matrix which runs in the buildservice. Most of the tests uses the special obsrepositories repo setup and the way the integration tests are structured differentiates the architecture on the project path level not on the repository setup in the kiwi config.

Because of that I added an arch attribute to the repo setup of one of the rawhide integration tests. I think the test is ok because it would fail if the architecture match would not work.

I'll give this a test in Staging now

schaefi commented 4 months ago

Test is building here: