}
}
- if (minimal) {
- *rpmdbp = malloc(sizeof(struct rpmdb_s));
- **rpmdbp = db;
- return 0;
- }
-
rc = openDbFile(prefix, dbpath, "nameindex.rpm", justcheck, mode,
&db.nameIndex, DB_HASH);
if (!rc)
rc = openDbFile(prefix, dbpath, "fileindex.rpm", justcheck, mode,
&db.fileIndex, DB_HASH);
+ if (minimal) {
+ *rpmdbp = malloc(sizeof(struct rpmdb_s));
+ **rpmdbp = db;
+ return 0;
+ }
+
/* We used to store the fileindexes as complete paths, rather then
plain basenames. Let's see which version we are... */
if (!justcheck && !dbiGetFirstKey(db.fileIndex, &akey)) {