summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-11-03 00:34:54 +1000
committerAllan McRae <allan@archlinux.org>2013-02-09 12:43:37 +1000
commit0d89c10f4b12cb574223a23776c26144c6bceccd (patch)
tree743fef4b82ef9fe74e0b51cb5c9899e3d9694b73 /lib/libalpm
parent4ccf16dff589ce9f369d377bb5d3f490bd27c624 (diff)
downloadpacman-0d89c10f4b12cb574223a23776c26144c6bceccd.tar.xz
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 <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/sync.c1
1 files changed, 1 insertions, 0 deletions
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);
}