projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d1b852
)
Take advantage of new header string getters
author
Panu Matilainen
<pmatilai@redhat.com>
Wed, 2 Sep 2009 09:43:24 +0000
(12:43 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 2 Sep 2009 09:43:24 +0000
(12:43 +0300)
build/parsePreamble.c
patch
|
blob
|
history
diff --git
a/build/parsePreamble.c
b/build/parsePreamble.c
index
a1b28b4
..
82744fd
100644
(file)
--- 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;