diff options
author | Dan McGee <dan@archlinux.org> | 2011-04-21 02:54:01 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-24 10:31:32 +0200 |
commit | 1150d9e15aaea2ae1f259995d11442f491ef0af7 (patch) | |
tree | 537cb6094479710207aea562fed48bc48deb184b /lib/libalpm/be_sync.c | |
parent | db3b86e7f34f4c3ccb42e98465f2069aa642a85f (diff) | |
download | pacman-1150d9e15aaea2ae1f259995d11442f491ef0af7.tar.gz pacman-1150d9e15aaea2ae1f259995d11442f491ef0af7.tar.xz |
Move database 'version' check to registration time
This is another step toward doing both local database validation
(ensuring we don't have depends files) and sync database validation (via
signatures if present) when the database is registered.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_sync.c')
-rw-r--r-- | lib/libalpm/be_sync.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 2cf90544..1a434f24 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -559,15 +559,9 @@ error: return -1; } -static int sync_db_version(pmdb_t UNUSED *db) -{ - return 2; -} - struct db_operations sync_db_ops = { .populate = sync_db_populate, .unregister = _alpm_db_unregister, - .version = sync_db_version, }; pmdb_t *_alpm_db_register_sync(pmhandle_t *handle, const char *treename, |