aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-07-30 13:45:05 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-30 15:22:01 +0100
commit0b0f53eed0aadbf45d9eead96ebf7725cc7447e6 (patch)
tree09d23a8d9d35cb06ce58d5d61ee9f9d7138a4d18
parent28023ea2193405987062aa86d199d7844716cfe6 (diff)
downloadopenembedded-core-contrib-0b0f53eed0aadbf45d9eead96ebf7725cc7447e6.tar.gz
openembedded-core-contrib-0b0f53eed0aadbf45d9eead96ebf7725cc7447e6.tar.bz2
openembedded-core-contrib-0b0f53eed0aadbf45d9eead96ebf7725cc7447e6.zip
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>
-rw-r--r--scripts/lib/devtool/upgrade.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index 63362b4900c..826a3f955fc 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