summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-11-18 06:58:13 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-11-18 11:27:47 +0200
commit03d0f43f0bf4d2883a822277c7a9ae2936b3a699 (patch)
tree428848fcec2588007410ec59711cf3b92f3aa9a6 /build
parent61794cf2c0575de8d557b06df7e94865d7afe592 (diff)
downloadrpm-03d0f43f0bf4d2883a822277c7a9ae2936b3a699.tar.gz
rpm-03d0f43f0bf4d2883a822277c7a9ae2936b3a699.tar.bz2
rpm-03d0f43f0bf4d2883a822277c7a9ae2936b3a699.zip
Lazy allocation of FSM for file info sets
- new more or less internal rpmfiFSM() to create FSM on demand, move mapflags calculation there
Diffstat (limited to 'build')
-rw-r--r--build/pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/pack.c b/build/pack.c
index e0860c2b2..29e1d0524 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -44,12 +44,12 @@ static rpmRC cpio_doio(FD_t fdo, Header h, CSA_t csa,
if (cfd == NULL)
return RPMRC_FAIL;
- xx = fsmSetup(fi->fsm, FSM_PKGBUILD, ts, fi, cfd,
+ xx = fsmSetup(rpmfiFSM(fi), FSM_PKGBUILD, ts, fi, cfd,
&csa->cpioArchiveSize, &failedFile);
if (xx)
rc = RPMRC_FAIL;
(void) Fclose(cfd);
- xx = fsmTeardown(fi->fsm);
+ xx = fsmTeardown(rpmfiFSM(fi));
if (rc == RPMRC_OK && xx) rc = RPMRC_FAIL;
if (rc) {