diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-07-28 18:12:06 -0500 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-10-06 16:19:04 +0300 |
commit | 7b3a7d8578ff6c5436dd87f714607e36b3565d84 (patch) | |
tree | e689f230c67c1f1c3035803a6829ac7da646c1fa /src/index.c | |
parent | ecd6431309ff059e89ec7c0e8febb843cee5d3c1 (diff) | |
download | apk-tools-7b3a7d8578ff6c5436dd87f714607e36b3565d84.tar.gz apk-tools-7b3a7d8578ff6c5436dd87f714607e36b3565d84.tar.bz2 apk-tools-7b3a7d8578ff6c5436dd87f714607e36b3565d84.tar.xz apk-tools-7b3a7d8578ff6c5436dd87f714607e36b3565d84.zip |
index: Only rewrite arch if no error is encountered
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 4 |
1 files 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); } } |