repo: armh doesn't have noarch

This is about (a)synchronous package builder in fact.
This commit is contained in:
Gleb Fotengauer-Malinovskiy 2014-03-13 13:59:50 +00:00 committed by Michael Shigorin
parent e07bfea21c
commit febe4fc81b

View File

@ -13,8 +13,10 @@ updates_re="${prefix_re}http:\/\/\([^[:space:]]\+\)[[:space:]]*"
# architectures
host_arch="$(rpm --eval '%_host_cpu')"
[ "$host_arch" = "x86_64" ] && compat="x86_64-i586" || compat=
[ "$host_arch" = 'armh' ] && noarch= || noarch='noarch'
# turn on unconditionally
for arch in "$host_arch" noarch "$compat"; do
for arch in "$host_arch" "$noarch" "$compat"; do
[ -n "$arch" ] || continue
sed -i "s/^#\($updates_re$arch\)/\1/" "$repo_source"
done