diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-17 08:41:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-18 11:35:38 +0100 |
commit | d4f2f8269cff0e4e9a98ad1ef9c0f7b8a909d563 (patch) | |
tree | 697e1e5a81c26e7e0d9fbe269253aa77476599a8 /scripts/lib/recipetool/append.py | |
parent | 022deeb0effb92280cb86da962d8bd5e94d44947 (diff) | |
download | poky-d4f2f8269cff0e4e9a98ad1ef9c0f7b8a909d563.tar.gz |
recipetool/devtool: Ensure server knows about changed files
Bitbake has changed to require notification when metadata changes in the middle of tinfoil
sessions. Add the required function calls at the places metadata is changed.
(From OE-Core rev: e5574163ab49a8f51b2b34fd37acfd1cad9b7595)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool/append.py')
-rw-r--r-- | scripts/lib/recipetool/append.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/append.py b/scripts/lib/recipetool/append.py index 88ed8c5f01..9dbb1cc4b5 100644 --- a/scripts/lib/recipetool/append.py +++ b/scripts/lib/recipetool/append.py | |||
@@ -300,6 +300,7 @@ def appendfile(args): | |||
300 | perms = '0755' | 300 | perms = '0755' |
301 | install = {args.newfile: (args.targetpath, perms)} | 301 | install = {args.newfile: (args.targetpath, perms)} |
302 | oe.recipeutils.bbappend_recipe(rd, args.destlayer, {args.newfile: sourcepath}, install, wildcardver=args.wildcard_version, machine=args.machine) | 302 | oe.recipeutils.bbappend_recipe(rd, args.destlayer, {args.newfile: sourcepath}, install, wildcardver=args.wildcard_version, machine=args.machine) |
303 | tinfoil.modified_files() | ||
303 | return 0 | 304 | return 0 |
304 | else: | 305 | else: |
305 | if alternative_pns: | 306 | if alternative_pns: |
@@ -355,7 +356,7 @@ def appendsrc(args, files, rd, extralines=None): | |||
355 | copyfiles[newfile] = srcfile | 356 | copyfiles[newfile] = srcfile |
356 | 357 | ||
357 | oe.recipeutils.bbappend_recipe(rd, args.destlayer, copyfiles, None, wildcardver=args.wildcard_version, machine=args.machine, extralines=extralines) | 358 | oe.recipeutils.bbappend_recipe(rd, args.destlayer, copyfiles, None, wildcardver=args.wildcard_version, machine=args.machine, extralines=extralines) |
358 | 359 | tinfoil.modified_files() | |
359 | 360 | ||
360 | def appendsrcfiles(parser, args): | 361 | def appendsrcfiles(parser, args): |
361 | recipedata = _parse_recipe(args.recipe, tinfoil) | 362 | recipedata = _parse_recipe(args.recipe, tinfoil) |