From 0537efeb77531d2db84deee1c0c872617f00caab Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 26 May 2008 14:45:00 +0300 Subject: [PATCH] Convert addFileToTag() to new headerGet() --- build/pack.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build/pack.c b/build/pack.c index 3f74570..f830068 100644 --- a/build/pack.c +++ b/build/pack.c @@ -142,12 +142,14 @@ exit: */ static int addFileToTag(rpmSpec spec, const char * file, Header h, rpmTag tag) { - HGE_t hge = (HGE_t)headerGetEntryMinMemory; StringBuf sb = newStringBuf(); - char *s; + const char *s; + struct rpmtd_s td; - if (hge(h, tag, NULL, (rpm_data_t *)&s, NULL)) { + headerGet(h, tag, &td, HEADERGET_MINMEM); + if ((s = rpmtdGetString(&td))) { appendLineStringBuf(sb, s); + rpmtdFreeData(&td); (void) headerRemoveEntry(h, tag); } -- 2.7.4