needs to read rpmrc

CVS patchset: 1836
CVS date: 1997/10/03 16:05:46
This commit is contained in:
ewt 1997-10-03 16:05:46 +00:00
parent d518d25eb9
commit dac493ef9e
1 changed files with 3 additions and 1 deletions

View File

@ -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();