diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2017-09-04 11:09:28 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2018-03-28 13:27:14 +0300 |
commit | b1fd57c753df0b6bc69373c5f9adb995268d529a (patch) | |
tree | d0d80f6fcb1a25da6d76cfb321e5a76dbe72f5be | |
parent | 153f39abe3c7673a519be5bb0862f10fad7af4d0 (diff) | |
download | rpm-b1fd57c753df0b6bc69373c5f9adb995268d529a.tar.gz |
Limit "<package> has N files" debug diagnostics to install/erase goals
This was only really meant for install/erase goals, and is not really
meaningful for scriptlet goals which came much later in the history.
(cherry picked from commit 9b4bcd15a3e9817dba1262eba24b0916a9f2c05e)
-rw-r--r-- | lib/psm.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -479,8 +479,10 @@ static rpmpsm rpmpsmNew(rpmts ts, rpmte te, pkgGoal goal) if (psm->total == 0) psm->total = 100; - rpmlog(RPMLOG_DEBUG, "%s: %s has %d files\n", pkgGoalString(goal), + if (goal == PKG_INSTALL || goal == PKG_ERASE) { + rpmlog(RPMLOG_DEBUG, "%s: %s has %d files\n", pkgGoalString(goal), rpmteNEVRA(psm->te), rpmfilesFC(psm->files)); + } return psm; } |