]> 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)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 9 Aug 2021 01:27:20 +0000 (09:27 +0800)
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>
scripts/lib/devtool/upgrade.py

index a061f2607615bbb83d80d3161b0d7facae71eea3..834589f92b5bdd769aca44d9e720b0344c8c5779 100644 (file)
@@ -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