diff options
author | Ross Burton <ross.burton@arm.com> | 2022-12-07 16:36:49 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-08 10:50:24 +0000 |
commit | 528f4fb3683d048537604e4562ea758968060d62 (patch) | |
tree | 7192157155de19637ae0df932c7e1021375495f5 /scripts/combo-layer | |
parent | ebfab6c3034d41252d19c6e1a0ba79072aa51146 (diff) | |
download | openembedded-core-contrib-528f4fb3683d048537604e4562ea758968060d62.tar.gz |
combo-layer: dont use bb.utils.rename
Bitbake may not be configured, and bb isn't imported anyway.
Instead just use os.rename(), and take the filename from the file object
instead of duplicating logic.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/combo-layer')
-rwxr-xr-x | scripts/combo-layer | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/combo-layer b/scripts/combo-layer index c122f4b5e4..e467f390c1 100755 --- a/scripts/combo-layer +++ b/scripts/combo-layer @@ -507,7 +507,7 @@ def check_patch(patchfile): f.close() if of: of.close() - bb.utils.rename(patchfile + '.tmp', patchfile) + os.rename(of.name, patchfile) def drop_to_shell(workdir=None): if not sys.stdin.isatty(): |