From bc93eaffb0fe5dcb053364244f660e78199987e1 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Mon, 10 Aug 2009 08:47:05 +0300 Subject: 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. --- src/database.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/database.c') 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 */ -- cgit v1.2.3