From dac493ef9edff235c4abad40801c93fcbdd35840 Mon Sep 17 00:00:00 2001 From: ewt Date: Fri, 3 Oct 1997 16:05:46 +0000 Subject: [PATCH] needs to read rpmrc CVS patchset: 1836 CVS date: 1997/10/03 16:05:46 --- convertdb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/convertdb.c b/convertdb.c index d51e8ce69..c990b735f 100644 --- a/convertdb.c +++ b/convertdb.c @@ -53,7 +53,7 @@ int convertDB(void) { unlink("/var/lib/rpm/packageindex.rpm"); unlink("/var/lib/rpm/fileindex.rpm"); - if (rpmdbOpen("", &db, O_RDWR | O_EXCL | O_CREAT, 0644)) { + if (rpmdbOpen("", &db, O_RDWR | O_CREAT, 0644)) { rpmError(RPMERR_DBOPEN, "failed to create RPM database /var/lib/rpm"); return 0; } @@ -205,6 +205,8 @@ int main(int argc, char ** argv) { exit(1); } + rpmReadConfigFiles(NULL, NULL, NULL, 0); + printf("rpmconvert 1.0 - converting database in /var/lib/rpm\n"); convertDB();