From b1fd57c753df0b6bc69373c5f9adb995268d529a Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 4 Sep 2017 11:09:28 +0300 Subject: Limit " 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) --- lib/psm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.1