diff options
author | jbj <devnull@localhost> | 2002-08-02 21:52:01 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-08-02 21:52:01 +0000 |
commit | f5c9fd111bf2d68bff373738310bfc355577233b (patch) | |
tree | 2bdf25a899056387b2be133f76397f257407eb43 /python | |
parent | 78fafefc38e1176e747c3453393bffa3f7f5c551 (diff) | |
download | librpm-tizen-f5c9fd111bf2d68bff373738310bfc355577233b.tar.gz librpm-tizen-f5c9fd111bf2d68bff373738310bfc355577233b.tar.bz2 librpm-tizen-f5c9fd111bf2d68bff373738310bfc355577233b.zip |
- check header blobs on export (i.e. rpmdbAdd())..
- enable iterator header blob checks for install/erase modes.
- python: _vsflags_up2date macro to configure verify signature flags.
CVS patchset: 5595
CVS date: 2002/08/02 21:52:01
Diffstat (limited to 'python')
-rw-r--r-- | python/rpmts-py.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/python/rpmts-py.c b/python/rpmts-py.c index 03e28ed65..65f53e6e1 100644 --- a/python/rpmts-py.c +++ b/python/rpmts-py.c @@ -37,8 +37,14 @@ static int _rpmts_debug = 0; * installation and upgrade of packages. The rpm.ts object is * instantiated by the TransactionSet function in the rpm module. * - * The TransactionSet function takes a single optional argument. The first - * argument is the root path. + * The TransactionSet function takes two optional arguments. The first + * argument is the root path. The second is the verify signature flags, + * the sum of the following flags: + * + * - 1 --nodigest if set, don't check digest. + * - 2 --nosignature if set, don't check signature. + * - 4 --nolegacy if set, check header+payload (if possible). + * - 8 --nohdrchk if set, don't check rpmdb headers. * * A rpm.ts object has the following methods: * @@ -992,14 +998,16 @@ rpmts_Create(/*@unused@*/ PyObject * self, PyObject * args) { rpmtsObject * o; char * rootDir = "/"; + int vsflags = rpmExpandNumeric("%{?_vsflags_up2date}"); - if (!PyArg_ParseTuple(args, "|s:Create", &rootDir)) + if (!PyArg_ParseTuple(args, "|si:Create", &rootDir, &vsflags)) return NULL; o = (void *) PyObject_NEW(rpmtsObject, &rpmts_Type); o->ts = rpmtsCreate(); (void) rpmtsSetRootDir(o->ts, rootDir); + (void) rpmtsSetVerifySigFlags(o->ts, vsflags); o->keyList = PyList_New(0); o->scriptFd = NULL; |