From 0d89c10f4b12cb574223a23776c26144c6bceccd Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 3 Nov 2012 00:34:54 +1000 Subject: Prompt to delete packages with signature fails Offer to remove the bad package when a signature fails to validate as is done for checksum failures. Signed-off-by: Allan McRae --- lib/libalpm/sync.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 34237713..c76b502a 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -1096,6 +1096,7 @@ static int check_validity(alpm_handle_t *handle, v->level & ALPM_SIG_PACKAGE_OPTIONAL, v->level & ALPM_SIG_PACKAGE_MARGINAL_OK, v->level & ALPM_SIG_PACKAGE_UNKNOWN_OK); + prompt_to_delete(handle, v->path, v->error); } else if(v->error == ALPM_ERR_PKG_INVALID_CHECKSUM) { prompt_to_delete(handle, v->path, v->error); } -- cgit v1.2.3-70-g09d2