diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-07-30 13:45:05 +0200 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-08-09 09:27:20 +0800 |
commit | 5fb2fb70d14b0e9f6235e5b940e9a3e1145750bb (patch) | |
tree | d2f8bb401a6a466a57b531258d03b0bc71ef0c42 /scripts | |
parent | 5dc6645397fa8072428a17ea904d8e0b110dc12c (diff) | |
download | openembedded-core-contrib-5fb2fb70d14b0e9f6235e5b940e9a3e1145750bb.tar.gz |
devtool: print a warning on upgrades if PREFERRED_VERSION is set
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0b0f53eed0aadbf45d9eead96ebf7725cc7447e6)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/devtool/upgrade.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py index a061f26076..834589f92b 100644 --- a/scripts/lib/devtool/upgrade.py +++ b/scripts/lib/devtool/upgrade.py @@ -582,6 +582,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 |