diff options
author | Allan McRae <allan@archlinux.org> | 2012-11-02 15:34:54 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-02-09 03:43:37 +0100 |
commit | 0d89c10f4b12cb574223a23776c26144c6bceccd (patch) | |
tree | 743fef4b82ef9fe74e0b51cb5c9899e3d9694b73 | |
parent | 4ccf16dff589ce9f369d377bb5d3f490bd27c624 (diff) | |
download | pacman-0d89c10f4b12cb574223a23776c26144c6bceccd.tar.gz pacman-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>
-rw-r--r-- | lib/libalpm/sync.c | 1 |
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); } |