index: Only rewrite arch if no error is encountered

cute-signatures
A. Wilcox 2017-07-28 18:12:06 -05:00 committed by William Pitcock
parent 13747fab83
commit 8221be3569
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}