summaryrefslogtreecommitdiff
path: root/lib/psm.c
diff options
context:
space:
mode:
authorFlorian Festi <ffesti@redhat.com>2008-12-02 10:11:44 +0100
committerFlorian Festi <ffesti@redhat.com>2008-12-10 13:40:53 +0100
commit9c9410dc7afb3bfa9b47d2d4691fabd8f067c86b (patch)
tree7297968ff209db77a673e3f2bb6843da491fc8bc /lib/psm.c
parent8fa80b0f35574683beb19930264fa3b572c5ed24 (diff)
downloadrpm-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.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/psm.c b/lib/psm.c
index b26019ea2..7f68d4b08 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -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);