summaryrefslogtreecommitdiff
path: root/lib/rebuilddb.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-04-03 14:27:21 +0000
committerjbj <devnull@localhost>2000-04-03 14:27:21 +0000
commit6c203a39e5226be62a2c3b8404ffb8750238ea82 (patch)
tree3ad0ddbe5114de664bfbe71b6f7938e17763c269 /lib/rebuilddb.c
parent9ee04f850d5cde98d0a3541930bb5654c0fa1e37 (diff)
downloadrpm-6c203a39e5226be62a2c3b8404ffb8750238ea82.tar.gz
rpm-6c203a39e5226be62a2c3b8404ffb8750238ea82.tar.bz2
rpm-6c203a39e5226be62a2c3b8404ffb8750238ea82.zip
Indicate that dbenv should be trashed after a rebuild.
CVS patchset: 3654 CVS date: 2000/04/03 14:27:21
Diffstat (limited to 'lib/rebuilddb.c')
-rw-r--r--lib/rebuilddb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rebuilddb.c b/lib/rebuilddb.c
index 45b0c09b8..5d267a6c7 100644
--- a/lib/rebuilddb.c
+++ b/lib/rebuilddb.c
@@ -6,6 +6,7 @@
#include "rpmdb.h"
extern int _useDbiMajor; /* XXX shared with dbindex.c */
+extern int __do_dbenv_remove; /* XXX in dbindex.c, shared with rebuilddb.c */
/** */
int rpmdbRebuild(const char * rootdir)
@@ -143,6 +144,7 @@ fprintf(stderr, "*** rpmdbRebuild: filterdbdups %d preferdb %d\n", _filterDbDups
recnum = rpmdbNextRecNum(olddb, recnum);
}
+ __do_dbenv_remove = 1; /* XXX in dbindex.c, shared with rebuilddb.c */
rpmdbClose(olddb);
rpmdbClose(newdb);