diff options
author | Florian Festi <ffesti@redhat.com> | 2008-12-02 10:11:44 +0100 |
---|---|---|
committer | Florian Festi <ffesti@redhat.com> | 2008-12-10 13:40:53 +0100 |
commit | 9c9410dc7afb3bfa9b47d2d4691fabd8f067c86b (patch) | |
tree | 7297968ff209db77a673e3f2bb6843da491fc8bc /lib/psm.c | |
parent | 8fa80b0f35574683beb19930264fa3b572c5ed24 (diff) | |
download | rpm-9c9410dc7afb3bfa9b47d2d4691fabd8f067c86b.tar.gz rpm-9c9410dc7afb3bfa9b47d2d4691fabd8f067c86b.tar.bz2 rpm-9c9410dc7afb3bfa9b47d2d4691fabd8f067c86b.zip |
Move the run time part of fstates from rpmfi to rpmfs. Keep fstates in rpmfi as long as it is a real tag read from the rpmdb.
Diffstat (limited to 'lib/psm.c')
-rw-r--r-- | lib/psm.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1401,11 +1401,13 @@ rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage) if (psm->goal == PSM_PKGINSTALL) { rpm_time_t installTime = (rpm_time_t) time(NULL); - rpm_count_t fc = rpmfiFC(fi); + rpmfs fs = rpmteGetFileStates(psm->te); + rpm_count_t fc = rpmfsFC(fs); + char * fileStates = rpmfsGetStates(fs); Header h = rpmteHeader(psm->te); - if (fi->fstates != NULL && fc > 0) { - headerPutChar(h, RPMTAG_FILESTATES, fi->fstates, fc); + if (fileStates != NULL && fc > 0) { + headerPutChar(h, RPMTAG_FILESTATES, fileStates, fc); } headerPutUint32(h, RPMTAG_INSTALLTIME, &installTime, 1); |