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:
5c2acdc
)
Convert addFileToTag() to new headerGet()
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 26 May 2008 11:45:00 +0000
(14:45 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 26 May 2008 11:45:00 +0000
(14:45 +0300)
build/pack.c
patch
|
blob
|
history
diff --git
a/build/pack.c
b/build/pack.c
index
3f74570
..
f830068
100644
(file)
--- 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);
}