Commit 1540ada0 authored by Mikhail Gordeev's avatar Mikhail Gordeev Committed by Michael Shigorin

repo: use %_arch macros to get host arch

%_host_cpu was a wrong choice in the first place, and the particular case of %_arch == ppc64le with %_host_cpu == powerpc64le became the culprit.
parent b8c42c6c
......@@ -11,7 +11,7 @@ host_re="http:\/\/\([^[:space:]]\+\)[[:space:]]\+"
updates_re="${prefix_re}${host_re}\([^[:space:]]\+\/\)\?"
# architectures
host_arch="$(rpm --eval '%_host_cpu')"
host_arch="$(rpm --eval '%_arch')"
[ "$host_arch" = "x86_64" ] && compat="x86_64-i586" || compat=
[ "$host_arch" = 'armh' ] && noarch= || noarch='noarch'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment