diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-04-14 18:15:39 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-04-14 18:15:39 +0300 |
commit | 180a34737203f0cc1e0d843915387ce9ffeb894c (patch) | |
tree | a1b150a64620b198ee5dd930d19e23f50515c593 /lib/psm.c | |
parent | 9309a4bd097971fe68b6bfa50d73614baa4844fe (diff) | |
download | rpm-180a34737203f0cc1e0d843915387ce9ffeb894c.tar.gz rpm-180a34737203f0cc1e0d843915387ce9ffeb894c.tar.bz2 rpm-180a34737203f0cc1e0d843915387ce9ffeb894c.zip |
Fix indentation, no functional changes
Diffstat (limited to 'lib/psm.c')
-rw-r--r-- | lib/psm.c | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -834,19 +834,18 @@ static rpmRC runScript(rpmpsm psm, Header h, rpmTag stag, ARGV_t * argvp, rpmlog(RPMLOG_ERR, _("%s scriptlet failed, waitpid(%d) rc %d: %s\n"), sname, psm->sq.child, psm->sq.reaped, strerror(errno)); rc = RPMRC_FAIL; - } else - if (!WIFEXITED(psm->sq.status) || WEXITSTATUS(psm->sq.status)) { - if (WIFSIGNALED(psm->sq.status)) { - (void)rpmtsNotify(ts, psm->te, RPMCALLBACK_SCRIPT_ERROR, - stag, WTERMSIG(psm->sq.status)); - rpmlog(RPMLOG_ERR, _("%s scriptlet failed, signal %d\n"), - sname, WTERMSIG(psm->sq.status)); - } else { - (void) rpmtsNotify(ts, psm->te, RPMCALLBACK_SCRIPT_ERROR, + } else if (!WIFEXITED(psm->sq.status) || WEXITSTATUS(psm->sq.status)) { + if (WIFSIGNALED(psm->sq.status)) { + (void)rpmtsNotify(ts, psm->te, RPMCALLBACK_SCRIPT_ERROR, + stag, WTERMSIG(psm->sq.status)); + rpmlog(RPMLOG_ERR, _("%s scriptlet failed, signal %d\n"), + sname, WTERMSIG(psm->sq.status)); + } else { + (void) rpmtsNotify(ts, psm->te, RPMCALLBACK_SCRIPT_ERROR, stag, WEXITSTATUS(psm->sq.status)); - rpmlog(RPMLOG_ERR, _("%s scriptlet failed, exit status %d\n"), - sname, WEXITSTATUS(psm->sq.status)); - } + rpmlog(RPMLOG_ERR, _("%s scriptlet failed, exit status %d\n"), + sname, WEXITSTATUS(psm->sq.status)); + } rc = RPMRC_FAIL; } |