From 2cd96bb8fe1d74a620fd9df612e0edac7d78041b Mon Sep 17 00:00:00 2001 From: Otto Urpelainen Date: Mar 23 2021 18:15:07 +0000 Subject: Silence dnf repoquery output when resolving dependencies standard output of fedora-review printed this kind of lines many times: Last metadata expiration check: 0:00:09 ago on Tue Mar 23 19:31:22 2021. Last metadata expiration check: 0:00:19 ago on Tue Mar 23 19:31:22 2021. Last metadata expiration check: 0:00:22 ago on Tue Mar 23 19:31:22 2021. Last metadata expiration check: 0:00:25 ago on Tue Mar 23 19:31:22 2021. The reason was missing -q ("quiet") parameter from one call to dnf repoquery. Other repoquery calls do already use -q, so it is added to the outlier also. After the change, output is clean. --- diff --git a/src/FedoraReview/deps.py b/src/FedoraReview/deps.py index ff30061..9ff6484 100644 --- a/src/FedoraReview/deps.py +++ b/src/FedoraReview/deps.py @@ -142,7 +142,7 @@ def resolve_one(req): "-qn", "--enable-network", "shell", - 'dnf repoquery -C --whatprovides "' + req + '"', + 'dnf repoquery -q -C --whatprovides "' + req + '"', ] Settings.get_logger().debug("Running: %s", " ".join(cmd))