From f45369800abdeb54847d9ea6a326eb613f30cd3b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 28 Feb 2011 10:46:00 -0600 Subject: Check local DB version before continuing transaction Ensure we have a local DB version that is up to par with what we expect before we go down any road that might modify it. This should prevent stupid mistakes with the 3.5.X upgrade and people not running pacman-db-upgrade after the transaction as they will need to. Signed-off-by: Dan McGee --- lib/libalpm/alpm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libalpm/alpm.c') diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 7c3bfc26..4f95832d 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -56,6 +56,8 @@ int SYMEXPORT alpm_initialize(void) } if(_alpm_db_register_local() == NULL) { /* error code should be set */ + _alpm_handle_free(handle); + handle = NULL; return(-1); } -- cgit v1.2.3-70-g09d2