diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2021-08-26 19:37:01 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-27 11:54:59 +0100 |
commit | a5b257006b2c480d86e09909cdafb3c8ba05b863 (patch) | |
tree | 9c978ac6eb6de5af61769df4d6277f61ece85caa /bitbake | |
parent | 37e0565c11240a3e1e1acec338d9695666757fa3 (diff) | |
download | poky-a5b257006b2c480d86e09909cdafb3c8ba05b863.tar.gz |
bitbake: providers: Use new override syntax when handling pn- "override"
Make versionVariableMatch() support pn-foo overrides using the new
override syntax.
(Bitbake rev: 653df4bc413d595d5611d5fa678e7f2e30bb7431)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/providers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py index 516d45e4aa..8c1c31a5c5 100644 --- a/bitbake/lib/bb/providers.py +++ b/bitbake/lib/bb/providers.py | |||
@@ -94,7 +94,7 @@ def versionVariableMatch(cfgData, keyword, pn): | |||
94 | 94 | ||
95 | # pn can contain '_', e.g. gcc-cross-x86_64 and an override cannot | 95 | # pn can contain '_', e.g. gcc-cross-x86_64 and an override cannot |
96 | # hence we do this manually rather than use OVERRIDES | 96 | # hence we do this manually rather than use OVERRIDES |
97 | ver = cfgData.getVar("%s_VERSION_pn-%s" % (keyword, pn)) | 97 | ver = cfgData.getVar("%s_VERSION:pn-%s" % (keyword, pn)) |
98 | if not ver: | 98 | if not ver: |
99 | ver = cfgData.getVar("%s_VERSION_%s" % (keyword, pn)) | 99 | ver = cfgData.getVar("%s_VERSION_%s" % (keyword, pn)) |
100 | if not ver: | 100 | if not ver: |