From 7ef6ab6bcf220ca411f764d18ee2b7efef9b81d9 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 25 Nov 2008 17:05:26 +0200 Subject: [PATCH] runTransScripts() don't need no steenking rpmfi's now --- lib/transaction.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/lib/transaction.c b/lib/transaction.c index a629284..393567b 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -834,7 +834,6 @@ static int runTransScripts(rpmts ts, rpmTag stag) { rpmtsi pi; rpmte p; - rpmfi fi; rpmpsm psm; int xx; @@ -862,25 +861,10 @@ static int runTransScripts(rpmts ts, rpmTag stag) if (!havescript) continue; - if ((fi = rpmtsiFi(pi)) == NULL) - continue; /* XXX can't happen */ - if (rpmteOpen(p, ts)) { - p->fi = rpmfiFree(p->fi); - fi = rpmfiNew(ts, p->h, RPMTAG_BASENAMES, RPMFI_KEEPHEADER); - if (fi != NULL) { /* XXX can't happen */ - if (stag == RPMTAG_PRETRANS) { - fi->te = p; - p->fi = fi; - } else { - p->fi = fi; - p->fi->te = p; - } - } - psm = rpmpsmNew(ts, p, p->fi); + psm = rpmpsmNew(ts, p, NULL); xx = rpmpsmScriptStage(psm, stag, progtag); psm = rpmpsmFree(psm); - rpmteClose(p, ts); } } -- 2.7.4