diff options
-rw-r--r-- | lib/rpmte.c | 10 | ||||
-rw-r--r-- | lib/rpmte_internal.h | 3 |
2 files changed, 13 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) diff --git a/lib/rpmte_internal.h b/lib/rpmte_internal.h index d5a43c07b..57dec2fa5 100644 --- a/lib/rpmte_internal.h +++ b/lib/rpmte_internal.h @@ -111,6 +111,9 @@ struct rpmtsi_s { }; RPM_GNUC_INTERNAL +rpmfi rpmteSetFI(rpmte te, rpmfi fi); + +RPM_GNUC_INTERNAL int rpmteOpen(rpmte te, rpmts ts); RPM_GNUC_INTERNAL |