Make key_in_keychain available in library

In preparation for checking key presence and downloading needed keys
before conflict checking.

Signed-off-by: Allan McRae <allan@archlinux.org>
Move key importing into separate function

This will be useful for checking the availablity of all keys before
perfoming validation in sync operations and for downloading a needed
key in upgrade operations.

Signed-off-by: Allan McRae <allan@archlinux.org>
Add function to extract key id from signatures

This does not support all possibilities of RFC4880, but it does
cover every key currently used in Arch Linux.

Signed-off-by: Allan McRae <allan@archlinux.org>
Make decode_signature available to the library

Signed-off-by: Allan McRae <allan@archlinux.org>
Check keys are in keyring before package validation

Keys used to create signatures are checked for presence in the keyring
before package validation is performed.

Signed-off-by: Allan McRae <allan@archlinux.org>

Conflicts:
	lib/libalpm/alpm.h

Signed-off-by: Allan McRae <allan@archlinux.org>
Remove retry path from signature validation

Now that the keyring is checked for all needed keys before the
validation, we can not reach a point of a missing key when doing
validity checks for sync operations.

Signed-off-by: Allan McRae <allan@archlinux.org>
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>
Import key if needed when installing package from file

When installing a package with "pacman -U" that has a detached
signature, check if the needed key is in the keyring and download
if necessary.

Signed-off-by: Allan McRae <allan@archlinux.org>
README: update alpm options

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
README: update with 4.0 -> 4.1 API changes

Signed-off-by: Allan McRae <allan@archlinux.org>
Update NEWS for pacman-4.1

Signed-off-by: Allan McRae <allan@archlinux.org>
Skip reading sync db deltas files if UseDelta is unset

Signed-off-by: Allan McRae <allan@archlinux.org>
Quieten the build process some more

Signed-off-by: Allan McRae <allan@archlinux.org>
pacman: print version information in debug output

Signed-off-by: Allan McRae <allan@archlinux.org>
Exit with failure status if download or installation is not confirmed

Signed-off-by: Allan McRae <allan@archlinux.org>