summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-02 12:43:24 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-02 12:43:24 +0300
commitedc5d15db4037b981021f5fac92774b291b800a6 (patch)
tree6b135e9ed7292d88114f9e2d7e410e3fbcc4cc73 /build
parent1d1b852ac9d9c327c6705cea7a7eead937d02e92 (diff)
downloadlibrpm-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.c8
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;