X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail.wilcox-tech.com (mail.wilcox-tech.com [45.32.83.9]) by lists.alpinelinux.org (Postfix) with ESMTP id 2F51E5C3894 for ; Fri, 28 Jul 2017 23:21:56 +0000 (GMT) Received: (qmail 31262 invoked from network); 28 Jul 2017 23:20:43 -0000 Received: from ip68-13-242-69.ok.ok.cox.net (HELO localhost.localdomain) (awilcox@wilcox-tech.com@68.13.242.69) by mail.wilcox-tech.com with ESMTPA; 28 Jul 2017 23:20:43 -0000 From: "A. Wilcox" To: alpine-devel@lists.alpinelinux.org Cc: "A. Wilcox" Subject: [alpine-devel] [PATCH apk-tools 2/2] index: Only rewrite arch if no error is encountered Date: Fri, 28 Jul 2017 18:20:22 -0500 Message-Id: <20170728232022.24444-2-awilfox@adelielinux.org> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20170728232022.24444-1-awilfox@adelielinux.org> References: <20170728232022.24444-1-awilfox@adelielinux.org> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: From: "A. Wilcox" --- src/index.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.c b/src/index.c index 45d371b..4dd69cb 100644 --- a/src/index.c +++ b/src/index.c @@ -192,9 +192,9 @@ static int index_main(void *ctx, struct apk_database *db, struct apk_string_arra errors++; } else { newpkgs++; + if (ictx->rewrite_arch != NULL) + pkg->arch = ictx->rewrite_arch; } - if (ictx->rewrite_arch != NULL) - pkg->arch = ictx->rewrite_arch; apk_sign_ctx_free(&sctx); } } -- 2.10.0 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---