From: ewt Date: Wed, 10 Jul 1996 02:34:15 +0000 (+0000) Subject: aedded RPMTAG_INSTALLPREFIX, RPMVAR_DBPATH, and location parameter to X-Git-Tag: tznext/4.11.0.1.tizen20130304~11200 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49f4b0fba00d5437e2bfadcba7f1a0f621e5b357;p=tools%2Flibrpm-tizen.git aedded RPMTAG_INSTALLPREFIX, RPMVAR_DBPATH, and location parameter to rpmInstallPackage() CVS patchset: 760 CVS date: 1996/07/10 02:34:15 --- 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);