minor changes to get it compiling again
CVS patchset: 32 CVS date: 1995/12/13 20:20:14
This commit is contained in:
parent
75ab7b91d4
commit
2eec922f7e
13
convertdb.c
13
convertdb.c
|
@ -13,16 +13,7 @@
|
||||||
#include "rpmlib.h"
|
#include "rpmlib.h"
|
||||||
|
|
||||||
int reindexDB(char * dbprefix) {
|
int reindexDB(char * dbprefix) {
|
||||||
faFile pkgs;
|
return 0;
|
||||||
GDBM_FILE nameIndex;
|
|
||||||
|
|
||||||
pkgs = faOpen("/var/lib/rpm/packages.rpm", O_RDONLY, 0644);
|
|
||||||
if (!pkgs) {
|
|
||||||
error(RPMERR_DBOPEN);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int convertDB(char * dbprefix) {
|
int convertDB(char * dbprefix) {
|
||||||
|
@ -188,7 +179,7 @@ int convertDB(char * dbprefix) {
|
||||||
rpmdbClose(&olddb);
|
rpmdbClose(&olddb);
|
||||||
faClose(pkgs);
|
faClose(pkgs);
|
||||||
|
|
||||||
reindexDB(prefix);
|
reindexDB(dbprefix);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue