summaryrefslogtreecommitdiff
path: root/python/rpmte-py.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-11-27 10:02:00 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-11-27 10:02:00 +0200
commit48cefd2d785d3ba70eb5636789d63dd14c229e7f (patch)
tree0f8dcca4b6548bab3ed43414af78ab8f057864e0 /python/rpmte-py.c
parent01739ef5d6a56cea818f88a693a21359e3badca3 (diff)
downloadrpm-48cefd2d785d3ba70eb5636789d63dd14c229e7f.tar.gz
rpm-48cefd2d785d3ba70eb5636789d63dd14c229e7f.tar.bz2
rpm-48cefd2d785d3ba70eb5636789d63dd14c229e7f.zip
Drop the useless "tag" argument from rpmteFI()
- only RPMTAG_BASENAMES was ever allowed as the tag, makes no sense - API change but AFAIK nothing outside rpm itself uses it anyway
Diffstat (limited to 'python/rpmte-py.c')
-rw-r--r--python/rpmte-py.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/python/rpmte-py.c b/python/rpmte-py.c
index 7416eccd3..b7427f916 100644
--- a/python/rpmte-py.c
+++ b/python/rpmte-py.c
@@ -214,29 +214,12 @@ rpmte_DS(rpmteObject * s, PyObject * args, PyObject * kwds)
static PyObject *
rpmte_FI(rpmteObject * s, PyObject * args, PyObject * kwds)
{
- PyObject * TagN = NULL;
rpmfi fi;
- rpmTag tag;
- char * kwlist[] = {"tag", NULL};
-
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:FI", kwlist, &TagN))
- return NULL;
- tag = tagNumFromPyObject(TagN);
- if (tag == -1) {
- PyErr_SetString(PyExc_TypeError, "unknown tag type");
- return NULL;
- }
-
- fi = rpmteFI(s->te, tag);
+ fi = rpmteFI(s->te);
if (fi == NULL) {
-#ifdef DYING
- PyErr_SetString(PyExc_TypeError, "invalid fi tag");
- return NULL;
-#else
Py_INCREF(Py_None);
return Py_None;
-#endif
}
return (PyObject *) rpmfi_Wrap(rpmfiLink(fi, RPMDBG_M("rpmte_FI")));
}