From 49f4b0fba00d5437e2bfadcba7f1a0f621e5b357 Mon Sep 17 00:00:00 2001 From: ewt Date: Wed, 10 Jul 1996 02:34:15 +0000 Subject: [PATCH] aedded RPMTAG_INSTALLPREFIX, RPMVAR_DBPATH, and location parameter to rpmInstallPackage() CVS patchset: 760 CVS date: 1996/07/10 02:34:15 --- lib/rpmlib.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/rpmlib.h b/lib/rpmlib.h index 1afe326..09a76e5 100644 --- a/lib/rpmlib.h +++ b/lib/rpmlib.h @@ -84,6 +84,7 @@ extern const int rpmTagTableSize; #define RPMTAG_CONFLICTVERSION 1055 #define RPMTAG_DEFAULTPREFIX 1056 #define RPMTAG_BUILDPREFIX 1057 +#define RPMTAG_INSTALLPREFIX 1058 #define RPMFILE_STATE_NORMAL 0 #define RPMFILE_STATE_REPLACED 1 @@ -154,7 +155,8 @@ extern const int rpmTagTableSize; #define RPMVAR_BUILDARCH 24 #define RPMVAR_OS 25 #define RPMVAR_BUILDPREFIX 26 -#define RPMVAR_LASTVAR 27 /* IMPORTANT to keep right! */ +#define RPMVAR_DBPATH 27 +#define RPMVAR_LASTVAR 28 /* IMPORTANT to keep right! */ char *getVar(int var); int getBooleanVar(int var); @@ -186,8 +188,8 @@ int rpmdbFindByRequiredBy(rpmdb db, char * filespec, dbIndexSet * matches); int rpmArchScore(char * arch); int rpmInstallSourcePackage(char * prefix, int fd, char ** specFile); -int rpmInstallPackage(char * prefix, rpmdb db, int fd, int flags, - notifyFunction notify, char * labelFormat); +int rpmInstallPackage(char * rootdir, rpmdb db, int fd, char * prefix, + int flags, notifyFunction notify, char * labelFormat); int rpmRemovePackage(char * prefix, rpmdb db, unsigned int offset, int test); int rpmdbRemove(rpmdb db, unsigned int offset, int tolerant); int rpmdbAdd(rpmdb db, Header dbentry); -- 2.7.4