diff options
author | Dan McGee <dan@archlinux.org> | 2011-04-20 19:54:01 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-24 03:31:32 -0500 |
commit | 1150d9e15aaea2ae1f259995d11442f491ef0af7 (patch) | |
tree | 537cb6094479710207aea562fed48bc48deb184b /lib/libalpm/alpm.c | |
parent | db3b86e7f34f4c3ccb42e98465f2069aa642a85f (diff) | |
download | 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/alpm.c')
-rw-r--r-- | lib/libalpm/alpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 9b9719d1..b0bbbe8c 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -70,7 +70,7 @@ pmhandle_t SYMEXPORT *alpm_initialize(const char *root, const char *dbpath, snprintf(myhandle->lockfile, lockfilelen, "%s%s", myhandle->dbpath, lf); if(_alpm_db_register_local(myhandle) == NULL) { - myerr = PM_ERR_DB_CREATE; + myerr = myhandle->pm_errno; goto cleanup; } |