]> code.ossystems Code Review - openembedded-core.git/commitdiff
devtool: print a warning on upgrades if PREFERRED_VERSION is set
authorAlexander Kanavin <alex.kanavin@gmail.com>
Fri, 30 Jul 2021 11:45:05 +0000 (13:45 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 30 Jul 2021 14:22:01 +0000 (15:22 +0100)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/upgrade.py

index 63362b4900cba962acd5bcf1f92762ad0ef6e51e..826a3f955fc96aec0ee0a8a8027eb1a528b73b27 100644 (file)
@@ -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