From 41753ff4f7f1714e9b3de5b4bc8f23041cec9a9b Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Fri, 30 Jul 2021 13:45:05 +0200 Subject: devtool: print a warning on upgrades if PREFERRED_VERSION is set (From OE-Core rev: 0b0f53eed0aadbf45d9eead96ebf7725cc7447e6) Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- scripts/lib/devtool/upgrade.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/lib/devtool') diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py index 63362b4900..826a3f955f 100644 --- a/scripts/lib/devtool/upgrade.py +++ b/scripts/lib/devtool/upgrade.py @@ -583,6 +583,9 @@ def upgrade(args, config, basepath, workspace): logger.info('New recipe is %s' % rf) if license_diff: logger.info('License checksums have been updated in the new recipe; please refer to it for the difference between the old and the new license texts.') + preferred_version = rd.getVar('PREFERRED_VERSION_%s' % rd.getVar('PN')) + if preferred_version: + logger.warning('Version is pinned to %s via PREFERRED_VERSION; it may need adjustment to match the new version before any further steps are taken' % preferred_version) finally: tinfoil.shutdown() return 0 -- cgit v1.2.3-54-g00ecf