Introduce two new methods into the API - alpm_db_register_sync and alpm_db_register_local, which replace the functionality of alpm_db_register. which has now been flagged as deprecated. db_register_local always returns the local DB, and db_register_sync will always try to register a sync DB. This conceptually separates the local DB from sync DBs in the code. Also updated the pacman frontend to use the new functions. In addition, this changes the location of all sync DBs in the filesystem from $DBPATH/$REPO to $DBPATH/sync/$REPO, This removes the silly limitation that a sync DB couldn't be named 'local', along with structurally separating sync DBs and the local DB in the filesystem. Signed-off-by: Travis Willard <travis@archlinux.org> --- lib/libalpm/alpm.h | 8 +++++- lib/libalpm/db.c | 67 ++++++++++++++++++++++++++++++++++++++++++-------- lib/libalpm/db.h | 9 ++++++- src/pacman/pacman.c | 10 +------ 4 files changed, 73 insertions(+), 21 deletions(-)