Mail archive
alpine-devel

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

From: A. Wilcox <awilfox_at_adelielinux.org>
Date: Fri, 28 Jul 2017 18:20:22 -0500

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
---
Received on Fri Jul 28 2017 - 18:20:22 UTC