summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-08-10 08:47:05 +0300
committerTimo Teras <timo.teras@iki.fi>2009-08-10 08:47:05 +0300
commitbc93eaffb0fe5dcb053364244f660e78199987e1 (patch)
treee96523e645aef659eda68e09432f7f8c29430ea9 /src/database.c
parenta120a96db4c821f51dff953a3fc0475b4870a5c3 (diff)
downloadapk-tools-bc93eaffb0fe5dcb053364244f660e78199987e1.tar.gz
apk-tools-bc93eaffb0fe5dcb053364244f660e78199987e1.tar.bz2
apk-tools-bc93eaffb0fe5dcb053364244f660e78199987e1.tar.xz
apk-tools-bc93eaffb0fe5dcb053364244f660e78199987e1.zip
db, pkg: fix package verification during installation
some hooks to package verification code were missing causing the verification to not be done (causing pre-script to be not run). fixes #124, #126.
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c
index 425fb46..0f40ca5 100644
--- a/src/database.c
+++ b/src/database.c
@@ -1431,6 +1431,9 @@ static int apk_db_install_archive_entry(void *_ctx,
const char *p;
int r = 0, type = APK_SCRIPT_INVALID;
+ if (apk_sign_ctx_process_file(&ctx->sctx, ae, is) == 0)
+ return 0;
+
/* Package metainfo and script processing */
if (ae->name[0] == '.') {
/* APK 2.0 format */