From: Panu Matilainen Date: Mon, 18 Oct 2010 11:35:57 +0000 (+0300) Subject: Create indexes too on rpmdbInit() (ticket #156) X-Git-Tag: rpm-4.9.0-beta1~197 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8aa50d1881b5ab2ceeb63046fc2f5ede377f1bc;p=platform%2Fupstream%2Frpm.git Create indexes too on rpmdbInit() (ticket #156) - Seems strange to have an initializer function which doesn't initialize - This leaves RPMDB_FLAG_JUSTCHECK unused... --- 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);