Skip to content

Commit

Permalink
configs: use repo_arch, not target_arch with openSUSE
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Mar 4, 2024
1 parent a2dc295 commit 5061570
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
18 changes: 9 additions & 9 deletions mock-core-configs/etc/mock/templates/opensuse-leap-15.4.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ syslog_device=
install_weak_deps=0
metadata_expire=0
best=1
{% if target_arch == 'x86_64' %}
{% if repo_arch == 'x86_64' %}
excludepkgs=*.i586,*.i686,*.ppc,*.ppc64,*.ppc64le,*.s390x
{% elif target_arch == 'i586' %}
{% elif repo_arch == 'i586' %}
excludepkgs=*.x86_64,*.ppc,*.ppc64,*.ppc64le,*.s390x
{% elif target_arch == 'ppc64le' %}
{% elif repo_arch == 'ppc64le' %}
excludepkgs=*.ppc,*.ppc64,*.x86_64,*.i586,*.i686,*.s390x
{% elif target_arch == 'ppc64' %}
{% elif repo_arch == 'ppc64' %}
excludepkgs=*.ppc,*.ppc64le,*.x86_64,*.i586,*.i686,*.s390x
{% elif target_arch == 's390x' %}
{% elif repo_arch == 's390x' %}
excludepkgs=*.ppc,*.ppc64,*.ppc64le,*.x86_64,*.i586,*.i686
{% endif %}

Expand All @@ -48,7 +48,7 @@ user_agent={{ user_agent }}
# repos

[opensuse-leap-oss]
name=openSUSE Leap $releasever - {{ target_arch }} - OSS
name=openSUSE Leap $releasever - {{ repo_arch }} - OSS
baseurl=https://download.opensuse.org/distribution/leap/$releasever/repo/oss/
#metalink=https://download.opensuse.org/distribution/leap/$releasever/repo/oss/repodata/repomd.xml.metalink
enabled=1
Expand All @@ -58,23 +58,23 @@ gpgkey=file:///usr/share/distribution-gpg-keys/opensuse/RPM-GPG-KEY-openSUSE
gpgcheck=1

[opensuse-leap-oss-update]
name=openSUSE Leap $releasever - {{ target_arch }} - OSS - Updates
name=openSUSE Leap $releasever - {{ repo_arch }} - OSS - Updates
baseurl=https://download.opensuse.org/update/leap/$releasever/oss/
#metalink=https://download.opensuse.org/update/leap/$releasever/oss/repodata/repomd.xml.metalink
enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/opensuse/RPM-GPG-KEY-openSUSE
gpgcheck=1

[opensuse-leap-sle-update]
name=openSUSE Leap $releasever - {{ target_arch }} - Updates from SUSE Linux Enterprise
name=openSUSE Leap $releasever - {{ repo_arch }} - Updates from SUSE Linux Enterprise
baseurl=https://download.opensuse.org/update/leap/$releasever/sle/
#metalink=https://download.opensuse.org/update/leap/$releasever/sle/repodata/repomd.xml.metalink
enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/suse/RPM-GPG-KEY-SuSE-SLE-15
gpgcheck=1

[opensuse-leap-sle-backports-update]
name=openSUSE Leap $releasever - {{ target_arch }} - Updates from Backports for SUSE Linux Enterprise
name=openSUSE Leap $releasever - {{ repo_arch }} - Updates from Backports for SUSE Linux Enterprise
baseurl=https://download.opensuse.org/update/leap/$releasever/backports/
#metalink=https://download.opensuse.org/update/leap/$releasever/backports/repodata/repomd.xml.metalink
enabled=1
Expand Down
18 changes: 9 additions & 9 deletions mock-core-configs/etc/mock/templates/opensuse-leap-15.5.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ syslog_device=
install_weak_deps=0
metadata_expire=0
best=1
{% if target_arch == 'x86_64' %}
{% if repo_arch == 'x86_64' %}
excludepkgs=*.i586,*.i686,*.ppc,*.ppc64,*.ppc64le,*.s390x
{% elif target_arch == 'i586' %}
{% elif repo_arch == 'i586' %}
excludepkgs=*.x86_64,*.ppc,*.ppc64,*.ppc64le,*.s390x
{% elif target_arch == 'ppc64le' %}
{% elif repo_arch == 'ppc64le' %}
excludepkgs=*.ppc,*.ppc64,*.x86_64,*.i586,*.i686,*.s390x
{% elif target_arch == 'ppc64' %}
{% elif repo_arch == 'ppc64' %}
excludepkgs=*.ppc,*.ppc64le,*.x86_64,*.i586,*.i686,*.s390x
{% elif target_arch == 's390x' %}
{% elif repo_arch == 's390x' %}
excludepkgs=*.ppc,*.ppc64,*.ppc64le,*.x86_64,*.i586,*.i686
{% endif %}

Expand All @@ -48,7 +48,7 @@ user_agent={{ user_agent }}
# repos

[opensuse-leap-oss]
name=openSUSE Leap $releasever - {{ target_arch }} - OSS
name=openSUSE Leap $releasever - {{ repo_arch }} - OSS
baseurl=https://download.opensuse.org/distribution/leap/$releasever/repo/oss/
#metalink=https://download.opensuse.org/distribution/leap/$releasever/repo/oss/repodata/repomd.xml.metalink
enabled=1
Expand All @@ -59,23 +59,23 @@ gpgkey=file:///usr/share/distribution-gpg-keys/opensuse/RPM-GPG-KEY-openSUSE-202
gpgcheck=1

[opensuse-leap-oss-update]
name=openSUSE Leap $releasever - {{ target_arch }} - OSS - Updates
name=openSUSE Leap $releasever - {{ repo_arch }} - OSS - Updates
baseurl=https://download.opensuse.org/update/leap/$releasever/oss/
#metalink=https://download.opensuse.org/update/leap/$releasever/oss/repodata/repomd.xml.metalink
enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/opensuse/RPM-GPG-KEY-openSUSE-2022
gpgcheck=1

[opensuse-leap-sle-update]
name=openSUSE Leap $releasever - {{ target_arch }} - Updates from SUSE Linux Enterprise
name=openSUSE Leap $releasever - {{ repo_arch }} - Updates from SUSE Linux Enterprise
baseurl=https://download.opensuse.org/update/leap/$releasever/sle/
#metalink=https://download.opensuse.org/update/leap/$releasever/sle/repodata/repomd.xml.metalink
enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/suse/RPM-GPG-KEY-SuSE-SLE-Main-2023
gpgcheck=1

[opensuse-leap-sle-backports-update]
name=openSUSE Leap $releasever - {{ target_arch }} - Updates from Backports for SUSE Linux Enterprise
name=openSUSE Leap $releasever - {{ repo_arch }} - Updates from Backports for SUSE Linux Enterprise
baseurl=https://download.opensuse.org/update/leap/$releasever/backports/
#metalink=https://download.opensuse.org/update/leap/$releasever/backports/repodata/repomd.xml.metalink
enabled=1
Expand Down
20 changes: 10 additions & 10 deletions mock-core-configs/etc/mock/templates/opensuse-tumbleweed.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ syslog_device=
install_weak_deps=0
metadata_expire=0
best=1
{% if target_arch == 'x86_64' %}
{% if repo_arch == 'x86_64' %}
excludepkgs=*.i586,*.i686
{% elif target_arch == 'i586' %}
{% elif repo_arch == 'i586' %}
excludepkgs=*.x86_64
{% elif target_arch == 'ppc64le' %}
{% elif repo_arch == 'ppc64le' %}
excludepkgs=*.ppc,*.ppc64
{% elif target_arch == 'ppc64' %}
{% elif repo_arch == 'ppc64' %}
excludepkgs=*.ppc,*.ppc64le
{% endif %}

Expand All @@ -46,20 +46,20 @@ user_agent={{ user_agent }}
# repos

[opensuse-tumbleweed-oss]
name=openSUSE Tumbleweed - {{ target_arch }} - OSS
{% if target_arch in ['x86_64'] %}
name=openSUSE Tumbleweed - {{ repo_arch }} - OSS
{% if repo_arch in ['x86_64'] %}
baseurl=https://download.opensuse.org/tumbleweed/repo/oss/
#metalink=https://download.opensuse.org/tumbleweed/repo/oss/repodata/repomd.xml.metalink
{% elif target_arch in ['ppc64le', 'ppc64'] %}
{% elif repo_arch in ['ppc64le', 'ppc64'] %}
baseurl=https://download.opensuse.org/ports/ppc/tumbleweed/repo/oss/
#metalink=https://download.opensuse.org/ports/ppc/tumbleweed/repo/oss/repodata/repomd.xml.metalink
{% elif target_arch in ['aarch64'] %}
{% elif repo_arch in ['aarch64'] %}
baseurl=https://download.opensuse.org/ports/aarch64/tumbleweed/repo/oss/
#metalink=https://download.opensuse.org/ports/aarch64/tumbleweed/repo/oss/repodata/repomd.xml.metalink
{% elif target_arch in ['i586'] %}
{% elif repo_arch in ['i586'] %}
baseurl=https://download.opensuse.org/ports/i586/tumbleweed/repo/oss/
#metalink=https://download.opensuse.org/ports/i586/tumbleweed/repo/oss/repodata/repomd.xml.metalink
{% elif target_arch in ['s390x'] %}
{% elif repo_arch in ['s390x'] %}
baseurl=https://download.opensuse.org/ports/zsystems/tumbleweed/repo/oss/
#metalink=https://download.opensuse.org/ports/zsystems/tumbleweed/repo/oss/repodata/repomd.xml.metalink
{% endif %}
Expand Down

0 comments on commit 5061570

Please sign in to comment.