Skip to contentSkip to conversation

devtool: use straight print in check-upgrade-status output

PATCH New [email protected] 1 participant 1 message Jan 2, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 devtool: use straight print in check-upgrade-status output

From: Chen Qi <[email protected]>

'devtool check-upgrade-status' is for reporting upgradable status for recipes. The output should always be printed out. So we should just use 'print' instead of 'logger.info' as the latter will be suppressed if '-q' parameter is supplied to devtool.

---
 scripts/lib/devtool/upgrade.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/devtool/upgrade.py +1 -1
index a98370bc10..ef58523dc8 100644
@@ -631,7 +631,7 @@ def check_upgrade_status(args, config, basepath, workspace):
     for result in results:
         # pn, update_status, current, latest, maintainer, latest_commit, no_update_reason
         if args.all or result[1] != 'MATCH':
-            logger.info("{:25} {:15} {:15} {} {} {}".format(   result[0],
+            print("{:25} {:15} {:15} {} {} {}".format(   result[0],
                                                                result[2],
                                                                result[1] if result[1] != 'UPDATE' else (result[3] if not result[3].endswith("new-commits-available") else "new commits"),
                                                                result[4],
Signature · 1 line
2.34.1