summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2017-09-04 11:09:28 +0300
committerPanu Matilainen <pmatilai@redhat.com>2018-03-28 13:27:14 +0300
commitb1fd57c753df0b6bc69373c5f9adb995268d529a (patch)
treed0d80f6fcb1a25da6d76cfb321e5a76dbe72f5be
parent153f39abe3c7673a519be5bb0862f10fad7af4d0 (diff)
downloadrpm-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/psm.c b/lib/psm.c
index 341441b45..266b14a6f 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -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;
}