summaryrefslogtreecommitdiffstats
path: root/scripts
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-08-14 12:01:43 +0100
commit8692d8efac4c11002d2386e5fbd8e2668699e9eb (patch)
treed0194fced3e33d9fe1d98e8f0c20c29faae007bb /scripts
parentdff1129ce9a568b6b9bfa9a3a9a71b09288421e1 (diff)
downloadpoky-8692d8efac4c11002d2386e5fbd8e2668699e9eb.tar.gz
devtool: print a warning on upgrades if PREFERRED_VERSION is set
(From OE-Core rev: 5fb2fb70d14b0e9f6235e5b940e9a3e1145750bb) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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 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):
582 logger.info('New recipe is %s' % rf) 582 logger.info('New recipe is %s' % rf)
583 if license_diff: 583 if license_diff:
584 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.') 584 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.')
585 preferred_version = rd.getVar('PREFERRED_VERSION_%s' % rd.getVar('PN'))
586 if preferred_version:
587 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)
585 finally: 588 finally:
586 tinfoil.shutdown() 589 tinfoil.shutdown()
587 return 0 590 return 0