summaryrefslogtreecommitdiff
path: root/src/package.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-21 18:25:22 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-21 18:25:22 +0300
commit772e4aa26a2a0b21b667c54a11e05eae183e0915 (patch)
treee4d06dffe6419d2eaefd3fc5dc4dd6fa0055418e /src/package.c
parent2345548e4522a988024426432d0ed0e421599eba (diff)
downloadapk-tools-772e4aa26a2a0b21b667c54a11e05eae183e0915.tar.gz
apk-tools-772e4aa26a2a0b21b667c54a11e05eae183e0915.tar.bz2
apk-tools-772e4aa26a2a0b21b667c54a11e05eae183e0915.tar.xz
apk-tools-772e4aa26a2a0b21b667c54a11e05eae183e0915.zip
various: fix installation of new style apks
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/package.c b/src/package.c
index 44b4232..16d72f9 100644
--- a/src/package.c
+++ b/src/package.c
@@ -330,7 +330,8 @@ int apk_sign_ctx_process_file(struct apk_sign_ctx *ctx,
ctx->num_signatures++;
/* Found already a trusted key */
- if (ctx->signature.pkey != NULL)
+ if (ctx->action != APK_SIGN_VERIFY ||
+ ctx->signature.pkey != NULL)
return 0;
if (strncmp(&fi->name[6], "RSA.", 4) == 0 ||