From febe4fc81be65a92f3098ea4c5ef2a5fc6d2b830 Mon Sep 17 00:00:00 2001 From: Gleb Fotengauer-Malinovskiy Date: Thu, 13 Mar 2014 13:59:50 +0000 Subject: [PATCH] repo: armh doesn't have noarch This is about (a)synchronous package builder in fact. --- features.in/repo/image-scripts.d/90-enable-repo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features.in/repo/image-scripts.d/90-enable-repo b/features.in/repo/image-scripts.d/90-enable-repo index 913a3e2d..36fc2e91 100755 --- a/features.in/repo/image-scripts.d/90-enable-repo +++ b/features.in/repo/image-scripts.d/90-enable-repo @@ -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