[pacman-dev] [PATCH 7/8] Prompt to delete packages with signature fails
Dave Reisner
d at falconindy.com
Fri Nov 2 11:43:43 EDT 2012
On Sat, Nov 03, 2012 at 01:28:21AM +1000, Allan McRae wrote:
> 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>
> ---
FS#28014
This is totally anti-climactic.
> 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