diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-10-03 11:34:41 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-10-03 11:34:41 +0300 |
commit | e2b89abff7f6592bb2c2f2bda996d89df1960282 (patch) | |
tree | 3f57d177e96442c714cd915cda13ab846d11d4a6 /lib/psm.c | |
parent | b520b61387757e0ceb907d41cb0d0a5f6478bdbd (diff) | |
download | rpm-e2b89abff7f6592bb2c2f2bda996d89df1960282.tar.gz rpm-e2b89abff7f6592bb2c2f2bda996d89df1960282.tar.bz2 rpm-e2b89abff7f6592bb2c2f2bda996d89df1960282.zip |
Log message on all scriptlet failures.
Diffstat (limited to 'lib/psm.c')
-rw-r--r-- | lib/psm.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -756,6 +756,8 @@ static rpmRC runScript(rpmpsm psm, Header h, rpmTag stag, ARGV_t * argvp, fd = rpmMkTempFile((!rpmtsChrootDone(ts) ? rootDir : "/"), &fn); if (fd == NULL || Ferror(fd)) { + rpmlog(RPMLOG_ERR, _("Couldn't create temporary file for %s: %s\n"), + sname, strerror(errno)); rc = RPMRC_FAIL; goto exit; } @@ -803,7 +805,9 @@ static rpmRC runScript(rpmpsm psm, Header h, rpmTag stag, ARGV_t * argvp, } else { out = fdDup(STDOUT_FILENO); } - if (out == NULL) { /* XXX can't happen */ + if (out == NULL) { + rpmlog(RPMLOG_ERR, _("Couldn't duplicate file descriptor: %s: %s\n"), + sname, strerror(errno)); rc = RPMRC_FAIL; goto exit; } |