diff options
author | jbj <devnull@localhost> | 2003-01-25 20:59:52 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2003-01-25 20:59:52 +0000 |
commit | c87fa0b0298dda7ae49e3b079a7d464934188fe2 (patch) | |
tree | 249b92cb8db4add70f0b8f0f2b8dc499862aebce /python | |
parent | 8441baccd286b9693e74841946d338c3667f0bae (diff) | |
download | librpm-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')
-rw-r--r-- | python/rpmmodule.c | 2 | ||||
-rw-r--r-- | python/rpmte-py.c | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/python/rpmmodule.c b/python/rpmmodule.c index 2ac4aba8b..adcf3f53e 100644 --- a/python/rpmmodule.c +++ b/python/rpmmodule.c @@ -527,7 +527,7 @@ void initrpm(void) REGISTER_ENUM(RPMTRANS_FLAG_NOPREUN); REGISTER_ENUM(RPMTRANS_FLAG_NOPOSTUN); REGISTER_ENUM(RPMTRANS_FLAG_NOTRIGGERPOSTUN); - REGISTER_ENUM(RPMTRANS_FLAG_CHAINSAW); + REGISTER_ENUM(RPMTRANS_FLAG_ANACONDA); REGISTER_ENUM(RPMTRANS_FLAG_NOMD5); REGISTER_ENUM(RPMTRANS_FLAG_NOSUGGEST); REGISTER_ENUM(RPMTRANS_FLAG_ADDINDEPS); 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, |