Log all install/erase failures in rpmtsProcess()
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 25 Feb 2010 08:58:09 +0000 (10:58 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 25 Feb 2010 08:58:09 +0000 (10:58 +0200)
lib/transaction.c
tests/rpmconflict.at

index c585df9..819466b 100644 (file)
@@ -1476,6 +1476,8 @@ static int rpmtsProcess(rpmts ts)
            rpmteClose(p, ts, 1);
        }
        if (failed) {
+           rpmlog(RPMLOG_ERR, _("%s: %s failed\n"),
+                  rpmteNEVRA(p), rpmteTypeString(p));
            rpmteMarkFailed(p, ts);
            rc++;
        }
index aa30eab..6df064b 100644 (file)
@@ -101,6 +101,7 @@ runroot rpm -U "${TOPDIR}"/RPMS/noarch/symlinktest-1.0-2.noarch.rpm
 [1],
 [],
 [error: unpacking of archive failed on file /usr/share/symlinktest: cpio: rename failed - Is a directory
+error: symlinktest-1.0-2.noarch: install failed
 ])
 AT_CLEANUP