diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-07-30 13:45:05 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-02 15:44:11 +0100 |
commit | 41753ff4f7f1714e9b3de5b4bc8f23041cec9a9b (patch) | |
tree | 157fd52c554f55435f27368de58f36534b01c0e7 /scripts/lib/devtool/upgrade.py | |
parent | f1a277433c7c582d46fae43168d84beb03b7d554 (diff) | |
download | poky-41753ff4f7f1714e9b3de5b4bc8f23041cec9a9b.tar.gz |
devtool: print a warning on upgrades if PREFERRED_VERSION is set
(From OE-Core rev: 0b0f53eed0aadbf45d9eead96ebf7725cc7447e6)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/upgrade.py')
-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 63362b4900..826a3f955f 100644 --- a/scripts/lib/devtool/upgrade.py +++ b/scripts/lib/devtool/upgrade.py | |||
@@ -583,6 +583,9 @@ def upgrade(args, config, basepath, workspace): | |||
583 | logger.info('New recipe is %s' % rf) | 583 | logger.info('New recipe is %s' % rf) |
584 | if license_diff: | 584 | if license_diff: |
585 | 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 | 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.') |
586 | preferred_version = rd.getVar('PREFERRED_VERSION_%s' % rd.getVar('PN')) | ||
587 | if preferred_version: | ||
588 | 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) | ||
586 | finally: | 589 | finally: |
587 | tinfoil.shutdown() | 590 | tinfoil.shutdown() |
588 | return 0 | 591 | return 0 |