- 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
DIGEST_CTX ctx = NULL;
if (hdrp) *hdrp = NULL;
+ if (fn == NULL)
+ fn = Fdescr(fd);
rpmtdReset(&sigtd);
struct rpmtd_s filenames;
rpmtdReset(&filenames);
- rpmrc = rpmReadPackageFile(ts, fd, RPMDBG_M("InstallSourcePackage"), &h);
+ rpmrc = rpmReadPackageFile(ts, fd, NULL, &h);
switch (rpmrc) {
case RPMRC_NOTTRUSTED:
case RPMRC_NOKEY:
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);