[pacman-dev] [PATCH 7/8] Prompt to delete packages with signature fails
Allan McRae
allan at archlinux.org
Fri Nov 2 11:28:21 EDT 2012
Offer to remove the bad package when a signature fails to validate
as is done for checksum failures.
Signed-off-by: Allan McRae <allan at archlinux.org>
---
lib/libalpm/sync.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 031034d..2546579 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -1091,6 +1091,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);
}
--
1.8.0
More information about the pacman-dev
mailing list