diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-01-15 10:28:13 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-01-15 10:28:13 +0200 |
commit | af9801a162ef41ca85ca62a30b17f745d2ac855a (patch) | |
tree | 58c65cb9cfd2262442516163d684671813d56bde /lib/rpmte.c | |
parent | 6d26397a616586999f93fc4de30203db267a28f4 (diff) | |
download | rpm-af9801a162ef41ca85ca62a30b17f745d2ac855a.tar.gz rpm-af9801a162ef41ca85ca62a30b17f745d2ac855a.tar.bz2 rpm-af9801a162ef41ca85ca62a30b17f745d2ac855a.zip |
Add extra parameter to rpmteClose() to control fi behavior
- pre/posttrans scripts should leave te->fi alone, now it was getting
nuked, oops..
Diffstat (limited to 'lib/rpmte.c')
-rw-r--r-- | lib/rpmte.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/rpmte.c b/lib/rpmte.c index 7a2bb4079..130c1d9a3 100644 --- a/lib/rpmte.c +++ b/lib/rpmte.c @@ -809,7 +809,7 @@ static Header rpmteFDHeader(rpmts ts, rpmte te) rpmtsSetVSFlags(ts, ovsflags); switch (pkgrc) { default: - rpmteClose(te, ts); + rpmteClose(te, ts, 1); break; case RPMRC_NOTTRUSTED: case RPMRC_NOKEY: @@ -851,7 +851,7 @@ exit: return (h != NULL); } -int rpmteClose(rpmte te, rpmts ts) +int rpmteClose(rpmte te, rpmts ts, int reset_fi) { if (te == NULL || ts == NULL) return 0; @@ -868,7 +868,9 @@ int rpmteClose(rpmte te, rpmts ts) break; } rpmteSetHeader(te, NULL); - rpmteSetFI(te, NULL); + if (reset_fi) { + rpmteSetFI(te, NULL); + } return 1; } |