diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-23 10:49:47 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-23 10:49:47 +0300 |
commit | 6b9adb71f9715de3648673ae6ca4475a9e98d141 (patch) | |
tree | 8acef8b50d49901b182912de5d60051567642539 /python | |
parent | c29492242c97ebed80bdf561c4a15acf9d7939ca (diff) | |
download | rpm-6b9adb71f9715de3648673ae6ca4475a9e98d141.tar.gz rpm-6b9adb71f9715de3648673ae6ca4475a9e98d141.tar.bz2 rpm-6b9adb71f9715de3648673ae6ca4475a9e98d141.zip |
Add te.NEVRA() method, adjust docs
Diffstat (limited to 'python')
-rw-r--r-- | python/rpmte-py.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/python/rpmte-py.c b/python/rpmte-py.c index 2187cea1e..f4b7d8139 100644 --- a/python/rpmte-py.c +++ b/python/rpmte-py.c @@ -99,6 +99,12 @@ rpmte_NEVR(rpmteObject * s) } static PyObject * +rpmte_NEVRA(rpmteObject * s) +{ + return Py_BuildValue("s", rpmteNEVRA(s->te)); +} + +static PyObject * rpmte_Color(rpmteObject * s) { return Py_BuildValue("i", rpmteColor(s->te)); @@ -228,7 +234,10 @@ static struct PyMethodDef rpmte_methods[] = { - Return element os.\n" }, {"NEVR", (PyCFunction)rpmte_NEVR, METH_NOARGS, "te.NEVR() -> NEVR\n\ -- Return element name-version-release.\n" }, +- Return element name-[epoch:]version-release.\n" }, + {"NEVRA", (PyCFunction)rpmte_NEVRA, METH_NOARGS, +"te.NEVRA() -> NEVRA\n\ +- Return element name-[epoch:]version-release.arch\n" }, {"Color",(PyCFunction)rpmte_Color, METH_NOARGS, NULL}, {"PkgFileSize",(PyCFunction)rpmte_PkgFileSize, METH_NOARGS, |