Create local database directory if it is missing

This means that a missing local database becomes an error (as it
should be immediately created).  Note this only creates the "local"
directory and not its parent, which is check for during locking.

Signed-off-by: Allan McRae <allan@archlinux.org>
Add version file when creating local database directory

The version of the local pacman database is stored in its root in the file
.alpm_db_version.  The version is starting at 9, corresponding to the
next libalpm library version.

Signed-off-by: Allan McRae <allan@archlinux.org>
Add version file to empty local database

If a user manually creates the local database directory, or has an empty
local database for some other reason, we silently add a version file

Signed-off-by: Allan McRae <allan@archlinux.org>
Check the version of the local database during validation

Signed-off-by: Allan McRae <allan@archlinux.org>
[FIXME] Extend database upgrade script to handle alpm db version 9

Signed-off-by: Allan McRae <allan@archlinux.org>
Make functions to decode a signature and extract keyid public

These are useful for frontends.

Signed-off-by: Allan McRae <allan@archlinux.org>
List signiture keyids in -Sii output

Signed-off-by: Allan McRae <allan@archlinux.org>
Fix detection of joint --native and --foreign usage

Signed-off-by: Allan McRae <allan@archlinux.org>
makepkg.8: document environmental variables that affect gpg signing

Signed-off-by: Allan McRae <allan@archlinux.org>
makepkg.8: Document remaining environmental variables

Signed-off-by: Allan McRae <allan@archlinux.org>
repo-add.8: Provide example usage

Detail the current standard of generating two databases - with and
without the file list.

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

This function is useful for frontends to annotate package upgrades
that will be ignored.

Signed-off-by: Allan McRae <allan@archlinux.org>
Indicate ignored packages in -Qu output

Add "[ignored]" in the "pacman -Qu" output after packages that have their
upgrades ignored.

Signed-off-by: Allan McRae <allan@archlinux.org>
repo-add: Record information on install scriptlets in database

List which functions are present, if any, in a packages install scriptlet in
the repo database.  This will allow use to more effiently determine when
running install scriptlets is needed.
[FIXME] Add alpm_scriptlet_t enum to record which scriptlets a repo package contains