summaryrefslogtreecommitdiff
path: root/lib/rpmte.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-01-02 12:21:52 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-01-02 12:21:52 +0200
commit7d80218f391cf2d6902eb6c031d117956f05e8e7 (patch)
tree81ac819ffbce5197a5c076b4fac397f2c483cdc0 /lib/rpmte.c
parentc9e46a798598e30e152338c95225a25072264022 (diff)
downloadlibrpm-tizen-7d80218f391cf2d6902eb6c031d117956f05e8e7.tar.gz
librpm-tizen-7d80218f391cf2d6902eb6c031d117956f05e8e7.tar.bz2
librpm-tizen-7d80218f391cf2d6902eb6c031d117956f05e8e7.zip
Add rpmteSetFd() (internal) function
- this is dumb as only rpmInstallSourcePackage() needs, figure out something better eventually
Diffstat (limited to 'lib/rpmte.c')
-rw-r--r--lib/rpmte.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/rpmte.c b/lib/rpmte.c
index 89facfbf4..92efdc809 100644
--- a/lib/rpmte.c
+++ b/lib/rpmte.c
@@ -465,6 +465,17 @@ const char * rpmteNEVRA(rpmte te)
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);