summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-10 16:06:22 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-10 16:06:22 +0200
commit6a779c394b9ed70f7d7b45716b207ebae170f732 (patch)
tree99bdda3f1cf805d10a2884281ad0c412eaec8046 /python
parent0c4fe4a0b092e2fb32d517f45513c1a44fb6ca55 (diff)
downloadlibrpm-tizen-6a779c394b9ed70f7d7b45716b207ebae170f732.tar.gz
librpm-tizen-6a779c394b9ed70f7d7b45716b207ebae170f732.tar.bz2
librpm-tizen-6a779c394b9ed70f7d7b45716b207ebae170f732.zip
Add python method for for retrieving (without setting) ts vsflags
Diffstat (limited to 'python')
-rw-r--r--python/rpmts-py.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/python/rpmts-py.c b/python/rpmts-py.c
index 46571d2d6..55957584b 100644
--- a/python/rpmts-py.c
+++ b/python/rpmts-py.c
@@ -827,6 +827,14 @@ fprintf(stderr, "*** rpmts_SetVSFlags(%p) ts %p\n", s, s->ts);
/** \ingroup py_c
*/
static PyObject *
+rpmts_GetVSFlags(rpmtsObject * s)
+{
+ return Py_BuildValue("i", rpmtsVSFlags(s->ts));
+}
+
+/** \ingroup py_c
+ */
+static PyObject *
rpmts_SetColor(rpmtsObject * s, PyObject * args, PyObject * kwds)
{
uint32_t tscolor;
@@ -1364,6 +1372,9 @@ static struct PyMethodDef rpmts_methods[] = {
rpm.RPMVSF_NORSA if set, don't check header+payload RSA signature\n\
rpm._RPMVSF_NODIGESTS if set, don't check digest(s)\n\
rpm._RPMVSF_NOSIGNATURES if set, don't check signature(s)\n" },
+ {"getVSFlags",(PyCFunction) rpmts_GetVSFlags, METH_NOARGS,
+"ts.getVSFlags() -> vsflags\n\
+- Retrieve current signature verification flags from transaction\n" },
{"setColor",(PyCFunction) rpmts_SetColor, METH_VARARGS|METH_KEYWORDS,
NULL },
{"pgpPrtPkts", (PyCFunction) rpmts_PgpPrtPkts, METH_VARARGS|METH_KEYWORDS,