]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
devtool: use straight print in check-upgrade-status output
authorChen Qi <Qi.Chen@windriver.com>
Tue, 2 Jan 2024 08:40:02 +0000 (16:40 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Jan 2024 22:50:59 +0000 (22:50 +0000)
'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.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/upgrade.py

index a98370bc10124b525d6b1e1c5de70a545b4b4675..ef58523dc85fbb8420f1a751f10d416e78c128e8 100644 (file)
@@ -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],