diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-10-17 11:25:53 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-11-25 08:59:11 +0200 |
commit | eac4e3dad7351cd5bcc9d316defc12e48736a4a7 (patch) | |
tree | 8020b5d35f64e9a682ed64a75d1c230ecfa3b5f4 | |
parent | b2751f801c1830d1d8287050048f924ac193a211 (diff) | |
download | rpm-eac4e3dad7351cd5bcc9d316defc12e48736a4a7.tar.gz |
Skip posttrans scripts of failed transaction elements
(cherry picked from commit 98cd707af0f284eeb4cf5864fbb14445d529bf31)
-rw-r--r-- | lib/transaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/transaction.c b/lib/transaction.c index 02586653d..46c296370 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -866,8 +866,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)) { |