summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-07-07 17:26:56 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-07-07 17:26:56 +0300
commita12aa47808d15376b6571303906829abb3027bf7 (patch)
tree059a8d24b34b8714e11c8f7e8524ca08325c9775 /python
parenteb94de639491d33aea0ad50bf8f58d99f220c544 (diff)
downloadlibrpm-tizen-a12aa47808d15376b6571303906829abb3027bf7.tar.gz
librpm-tizen-a12aa47808d15376b6571303906829abb3027bf7.tar.bz2
librpm-tizen-a12aa47808d15376b6571303906829abb3027bf7.zip
Take advantage of Fdescr() in rpmReadPackageFile()
- If fn to rpmReadPackageFile() is NULL, use Fdescr() value to give more meaningful errors - Change a couple of places where we haven't got a clue of the file name to take advantage of the above
Diffstat (limited to 'python')
-rw-r--r--python/rpmts-py.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmts-py.c b/python/rpmts-py.c
index cabea1c90..0a55417c7 100644
--- a/python/rpmts-py.c
+++ b/python/rpmts-py.c
@@ -349,7 +349,7 @@ rpmts_HdrFromFdno(rpmtsObject * s, PyObject *arg)
return NULL;
Py_BEGIN_ALLOW_THREADS;
- rpmrc = rpmReadPackageFile(s->ts, rpmfdGetFd(fdo), "rpmts_HdrFromFdno", &h);
+ rpmrc = rpmReadPackageFile(s->ts, rpmfdGetFd(fdo), NULL, &h);
Py_END_ALLOW_THREADS;
Py_XDECREF(fdo);