diff options
author | Peter Bergin <peter.bergin@windriver.com> | 2023-05-02 12:37:20 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-03 07:33:18 +0100 |
commit | 09a1c156276f4cafec61bd51b1f02c9a2812939d (patch) | |
tree | c12c480445347236f0027699abf7a4cb432816d5 /meta/classes-recipe | |
parent | 6ec64c396bf88cfd626bc68cc737d9cddeb29100 (diff) | |
download | poky-09a1c156276f4cafec61bd51b1f02c9a2812939d.tar.gz |
update-alternatives.bbclass: fix old override syntax
Function 'gen_updatealternativesvardeps' still used old override
syntax when fetching variable flags. Update to use ':' instead to match
recipe meta data. This was found by review and no real issue encountered
but it is a bug that affects variable dependencies and can affect rebuilds
as task hashes might not be accurate.
(From OE-Core rev: 5691f554b2cd50f256a8cbb1d96781e9eb6b930e)
Signed-off-by: Peter Bergin <peter.bergin@windriver.com>
Signed-off-by: Peter Bergin <peter@berginkonsult.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r-- | meta/classes-recipe/update-alternatives.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-recipe/update-alternatives.bbclass b/meta/classes-recipe/update-alternatives.bbclass index 36a7497fec..b153e1b297 100644 --- a/meta/classes-recipe/update-alternatives.bbclass +++ b/meta/classes-recipe/update-alternatives.bbclass | |||
@@ -86,10 +86,10 @@ def gen_updatealternativesvardeps(d): | |||
86 | 86 | ||
87 | for p in pkgs: | 87 | for p in pkgs: |
88 | for v in vars: | 88 | for v in vars: |
89 | for flag in sorted((d.getVarFlags("%s_%s" % (v,p)) or {}).keys()): | 89 | for flag in sorted((d.getVarFlags("%s:%s" % (v,p)) or {}).keys()): |
90 | if flag == "doc" or flag == "vardeps" or flag == "vardepsexp": | 90 | if flag == "doc" or flag == "vardeps" or flag == "vardepsexp": |
91 | continue | 91 | continue |
92 | d.appendVar('%s_VARDEPS_%s' % (v,p), ' %s:%s' % (flag, d.getVarFlag('%s_%s' % (v,p), flag, False))) | 92 | d.appendVar('%s_VARDEPS_%s' % (v,p), ' %s:%s' % (flag, d.getVarFlag('%s:%s' % (v,p), flag, False))) |
93 | 93 | ||
94 | def ua_extend_depends(d): | 94 | def ua_extend_depends(d): |
95 | if not 'virtual/update-alternatives' in d.getVar('PROVIDES'): | 95 | if not 'virtual/update-alternatives' in d.getVar('PROVIDES'): |