diff mbox series

[1/1] bitbake: data: Add missing dependency handling of :remove operation

Message ID 20230918090522.659869-2-insu0.park@gmail.com
State New
Headers show
Series Fix dependency handling bug of :remove operation | expand

Commit Message

Insu Park Sept. 18, 2023, 9:05 a.m. UTC
A recipe variable handles its dependencies even on the "contains"
variables within the "inline Python expressions" like bb.utils.filter().
And it also handles those in the :append operation correctly, but the
problem is that it does not so in the :remove operation.

Fix it by adding the missing dependencies every time the :remove
operation has been handled.

Signed-off-by: Insu Park <insu0.park@gmail.com>
---
 lib/bb/data.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/lib/bb/data.py b/lib/bb/data.py
index 3ee8f5e7..505f4295 100644
--- a/lib/bb/data.py
+++ b/lib/bb/data.py
@@ -285,6 +285,7 @@  def build_dependencies(key, keys, mod_funcs, shelldeps, varflagsexcl, ignored_va
             value += "\n_remove of %s" % r
             deps |= r2.references
             deps = deps | (keys & r2.execs)
+            value = handle_contains(value, r2.contains, exclusions, d)
         return value
 
     deps = set()