summaryrefslogtreecommitdiff
path: root/lib/rpmdb.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-06-18 12:55:02 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-06-18 12:55:02 +0300
commitddd39615fd1bb0603be5626f1441dafc99c7055d (patch)
tree6c91d879a87858b66e092ad3976f63148158b1e8 /lib/rpmdb.c
parentd6735b669ef412d6be9b5d129436f98a3a0f0c10 (diff)
downloadrpm-ddd39615fd1bb0603be5626f1441dafc99c7055d.tar.gz
rpm-ddd39615fd1bb0603be5626f1441dafc99c7055d.tar.bz2
rpm-ddd39615fd1bb0603be5626f1441dafc99c7055d.zip
Convert rpmdbAdd() to use headerPut()
Diffstat (limited to 'lib/rpmdb.c')
-rw-r--r--lib/rpmdb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rpmdb.c b/lib/rpmdb.c
index bf954a7a5..c4299e256 100644
--- a/lib/rpmdb.c
+++ b/lib/rpmdb.c
@@ -2650,8 +2650,10 @@ int rpmdbAdd(rpmdb db, int iid, Header h,
#endif
if (iid != 0 && iid != -1) {
rpm_tid_t tid = iid;
- if (!headerIsEntry(h, RPMTAG_INSTALLTID))
- xx = headerAddEntry(h, RPMTAG_INSTALLTID, RPM_INT32_TYPE, &tid, 1);
+ struct rpmtd_s td;
+ if (!headerIsEntry(h, RPMTAG_INSTALLTID))
+ if (rpmtdFromUint32(&td, RPMTAG_INSTALLTID, &tid, 1))
+ headerPut(h, &td, HEADERPUT_DEFAULT);
}
(void) blockSignals(&signalMask);