Skip to content

Commit

Permalink
providers: Use new override syntax when handling pn- "override"
Browse files Browse the repository at this point in the history
Make versionVariableMatch() support pn-foo overrides using the new
override syntax.

Signed-off-by: Peter Kjellerstedt <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
  • Loading branch information
Saur2000 authored and rpurdie committed Aug 27, 2021
1 parent 8c7a54e commit 653df4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bb/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def versionVariableMatch(cfgData, keyword, pn):

# pn can contain '_', e.g. gcc-cross-x86_64 and an override cannot
# hence we do this manually rather than use OVERRIDES
ver = cfgData.getVar("%s_VERSION_pn-%s" % (keyword, pn))
ver = cfgData.getVar("%s_VERSION:pn-%s" % (keyword, pn))
if not ver:
ver = cfgData.getVar("%s_VERSION_%s" % (keyword, pn))
if not ver:
Expand Down

0 comments on commit 653df4b

Please sign in to comment.