use for binary packages (note the rpmdir is prepended to it)
- used pclose() instead of fclose() in -t code
- updated man pages
+ - changed "struct rpmdb" to "struct rpmdb_s" for C++
2.4 -> 2.4.1:
- take advantage of lchown() if it's available
one. Version numbers still need verification, but it gets us in the
right area w/o a linear search through the database. */
-struct rpmdb {
+struct rpmdb_s {
faFile pkgs;
dbiIndex * nameIndex, * fileIndex, * groupIndex, * providesIndex;
dbiIndex * requiredbyIndex, * conflictsIndex;
int openDatabase(char * prefix, char * dbpath, rpmdb *rpmdbp, int mode,
int perms, int justcheck) {
char * filename;
- struct rpmdb db;
+ struct rpmdb_s db;
int i;
struct flock lockinfo;
}
}
- *rpmdbp = malloc(sizeof(struct rpmdb));
+ *rpmdbp = malloc(sizeof(struct rpmdb_s));
**rpmdbp = db;
if (justcheck) {
/** **/
-typedef struct rpmdb * rpmdb;
+typedef struct rpmdb_s * rpmdb;
typedef void (*rpmNotifyFunction)(const unsigned long amount,
const unsigned long total);