summaryrefslogtreecommitdiff
path: root/lib/psm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/psm.c')
-rw-r--r--lib/psm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/psm.c b/lib/psm.c
index 05679b3c4..43d1dccf7 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -1260,11 +1260,8 @@ rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage)
}
if (psm->goal == PSM_PKGERASE) {
psm->scriptArg = psm->npkgs_installed - 1;
-
- /* Retrieve installed header. */
- rc = rpmpsmNext(psm, PSM_RPMDB_LOAD);
- if (rc == RPMRC_OK && psm->te)
- rpmteSetHeader(psm->te, fi->h);
+ /* XXX preserve RPMDB_LOAD behavior for now */
+ fi->h = rpmteHeader(psm->te);
}
break;
case PSM_PRE: