From e8aa50d1881b5ab2ceeb63046fc2f5ede377f1bc Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 18 Oct 2010 14:35:57 +0300 Subject: [PATCH] Create indexes too on rpmdbInit() (ticket #156) - Seems strange to have an initializer function which doesn't initialize - This leaves RPMDB_FLAG_JUSTCHECK unused... --- lib/rpmdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/rpmdb.c b/lib/rpmdb.c index 5e571cc..d8f9780 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -763,8 +763,7 @@ int rpmdbInit (const char * prefix, int perms) int _dbapi = rpmExpandNumeric("%{_dbapi}"); int rc; - rc = openDatabase(prefix, NULL, _dbapi, &db, (O_CREAT | O_RDWR), - perms, RPMDB_FLAG_JUSTCHECK); + rc = openDatabase(prefix, NULL, _dbapi, &db, (O_CREAT | O_RDWR), perms, 0); if (db != NULL) { int xx; xx = rpmdbOpenAll(db); -- 2.7.4