Mail archive
alpine-devel

Re: [alpine-devel] [PATCH apk-tools 2/2] index: Only rewrite arch if no error is encountered

From: William Pitcock <nenolod_at_dereferenced.org>
Date: Fri, 28 Jul 2017 22:53:33 -0500

Applied, thanks.

William

On Fri, Jul 28, 2017 at 6:20 PM, A. Wilcox <awilfox_at_adelielinux.org> wrote:
> From: "A. Wilcox" <AWilcox_at_Wilcox-Tech.com>
>
> ---
> 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
> _at_@ -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_at_lists.alpinelinux.org
> Help: alpine-devel+help_at_lists.alpinelinux.org
> ---
>


---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Fri Jul 28 2017 - 22:53:33 GMT