- this is dumb as only rpmInstallSourcePackage() needs, figure out something
better eventually
return (te != NULL ? te->NEVRA : NULL);
}
+FD_t rpmteSetFd(rpmte te, FD_t fd)
+{
+ if (te != NULL) {
+ if (te->fd != NULL)
+ te->fd = fdFree(te->fd, RPMDBG_M("rpmteSetFd"));
+ if (fd != NULL)
+ te->fd = fdLink(fd, RPMDBG_M("rpmteSetFd"));
+ }
+ return NULL;
+}
+
FD_t rpmteFd(rpmte te)
{
return (te != NULL ? te->fd : NULL);
rpmfi rpmteSetFI(rpmte te, rpmfi fi);
RPM_GNUC_INTERNAL
+FD_t rpmteSetFd(rpmte te, FD_t fd);
+
+RPM_GNUC_INTERNAL
int rpmteOpen(rpmte te, rpmts ts, int reload_fi);
RPM_GNUC_INTERNAL