summaryrefslogtreecommitdiff
path: root/lib/rpmte.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-12-19 14:04:18 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-12-19 14:04:18 +0200
commitde383d126a9e2789afbda412bb8e8d6d02462fee (patch)
tree03e8653d3bf99b9fa0fb2f6f29f2072974ef7c87 /lib/rpmte.c
parent4d1826f63fc022456f083076c27313e52a57d24b (diff)
downloadrpm-de383d126a9e2789afbda412bb8e8d6d02462fee.tar.gz
rpm-de383d126a9e2789afbda412bb8e8d6d02462fee.tar.bz2
rpm-de383d126a9e2789afbda412bb8e8d6d02462fee.zip
Add rpmteSetFI() ts element method
Diffstat (limited to 'lib/rpmte.c')
-rw-r--r--lib/rpmte.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/rpmte.c b/lib/rpmte.c
index 443c5697f..5636036c2 100644
--- a/lib/rpmte.c
+++ b/lib/rpmte.c
@@ -491,6 +491,16 @@ rpmds rpmteDS(rpmte te, rpmTag tag)
return NULL;
}
+rpmfi rpmteSetFI(rpmte te, rpmfi fi)
+{
+ if (te != NULL) {
+ te->fi = rpmfiFree(te->fi);
+ if (fi != NULL)
+ te->fi = rpmfiLink(fi, __FUNCTION__);
+ }
+ return NULL;
+}
+
rpmfi rpmteFI(rpmte te)
{
if (te == NULL)