summaryrefslogtreecommitdiff
path: root/python/rpmte-py.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2003-01-25 20:59:52 +0000
committerjbj <devnull@localhost>2003-01-25 20:59:52 +0000
commitc87fa0b0298dda7ae49e3b079a7d464934188fe2 (patch)
tree249b92cb8db4add70f0b8f0f2b8dc499862aebce /python/rpmte-py.c
parent8441baccd286b9693e74841946d338c3667f0bae (diff)
downloadlibrpm-tizen-c87fa0b0298dda7ae49e3b079a7d464934188fe2.tar.gz
librpm-tizen-c87fa0b0298dda7ae49e3b079a7d464934188fe2.tar.bz2
librpm-tizen-c87fa0b0298dda7ae49e3b079a7d464934188fe2.zip
- permit anaconda to choose "presentation order".
CVS patchset: 6028 CVS date: 2003/01/25 20:59:52
Diffstat (limited to 'python/rpmte-py.c')
-rw-r--r--python/rpmte-py.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/python/rpmte-py.c b/python/rpmte-py.c
index 02787e2e9..cf42cfeda 100644
--- a/python/rpmte-py.c
+++ b/python/rpmte-py.c
@@ -42,6 +42,7 @@
* - te.O() Return package operating system.
* - te.NEVR() Return package name-version-release.
* - te.Color() Return package color bits.
+ * - te.PkgFileSize() Return no. of bytes in package file (approx).
* - te.Depth() Return the level in the dependency tree (after ordering).
* - te.Npreds() Return the number of package prerequisites (after ordering).
* - te.Degree() Return the parent's degree + 1.
@@ -140,6 +141,14 @@ rpmte_Color(rpmteObject * s, PyObject * args)
}
static PyObject *
+rpmte_PkgFileSize(rpmteObject * s, PyObject * args)
+ /*@*/
+{
+ if (!PyArg_ParseTuple(args, ":PkgFileSize")) return NULL;
+ return Py_BuildValue("i", rpmtePkgFileSize(s->te));
+}
+
+static PyObject *
rpmte_Depth(rpmteObject * s, PyObject * args)
/*@*/
{
@@ -313,6 +322,8 @@ static struct PyMethodDef rpmte_methods[] = {
- Return element name-version-release.\n" },
{"Color",(PyCFunction)rpmte_Color, METH_VARARGS,
NULL},
+ {"PkgFileSize",(PyCFunction)rpmte_PkgFileSize, METH_VARARGS,
+ NULL},
{"Depth", (PyCFunction)rpmte_Depth, METH_VARARGS,
NULL},
{"Npreds", (PyCFunction)rpmte_Npreds, METH_VARARGS,