diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-02 12:43:24 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-02 12:43:24 +0300 |
commit | edc5d15db4037b981021f5fac92774b291b800a6 (patch) | |
tree | 6b135e9ed7292d88114f9e2d7e410e3fbcc4cc73 /build | |
parent | 1d1b852ac9d9c327c6705cea7a7eead937d02e92 (diff) | |
download | librpm-tizen-edc5d15db4037b981021f5fac92774b291b800a6.tar.gz librpm-tizen-edc5d15db4037b981021f5fac92774b291b800a6.tar.bz2 librpm-tizen-edc5d15db4037b981021f5fac92774b291b800a6.zip |
Take advantage of new header string getters
Diffstat (limited to 'build')
-rw-r--r-- | build/parsePreamble.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/build/parsePreamble.c b/build/parsePreamble.c index a1b28b4f9..82744fd60 100644 --- a/build/parsePreamble.c +++ b/build/parsePreamble.c @@ -428,12 +428,8 @@ spectag stashSt(rpmSpec spec, Header h, rpmTag tag, const char * lang) t->t_lang = xstrdup(lang); t->t_msgid = NULL; if (!(t->t_lang && !rstreq(t->t_lang, RPMBUILD_DEFAULT_LANG))) { - struct rpmtd_s td; - if (headerGet(h, RPMTAG_NAME, &td, HEADERGET_MINMEM)) { - rasprintf(&t->t_msgid, "%s(%s)", - rpmtdGetString(&td), rpmTagGetName(tag)); - rpmtdFreeData(&td); - } + rasprintf(&t->t_msgid, "%s(%s)", + headerGetString(h, RPMTAG_NAME), rpmTagGetName(tag)); } } return t; |