From 98cd707af0f284eeb4cf5864fbb14445d529bf31 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Sat, 17 Oct 2009 11:25:53 +0300 Subject: [PATCH] Skip posttrans scripts of failed transaction elements --- lib/transaction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/transaction.c b/lib/transaction.c index d21133e..50334dd 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -911,8 +911,8 @@ static int runTransScripts(rpmts ts, rpmTag stag) pi = rpmtsiInit(ts); while ((p = rpmtsiNext(pi, TR_ADDED)) != NULL) { - /* If no pre/post-transaction script, then don't bother. */ - if (!rpmteHaveTransScript(p, stag)) + /* Skip failed elements & those without pre/posttrans */ + if (!rpmteHaveTransScript(p, stag) || rpmteFailed(p)) continue; if (rpmteOpen(p, ts, 0)) { -- 2.7.4