summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2022-12-07 16:36:49 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-08 10:50:30 +0000
commitcee485d1672d13499cc8f084e083adbe071f0bf6 (patch)
treeafdf04725afacd3bfeebda07cf9b39c3909841fc
parent713d0e531bb01c8faa3ee31d5f7b9aee3606b718 (diff)
downloadpoky-cee485d1672d13499cc8f084e083adbe071f0bf6.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. (From OE-Core rev: 528f4fb3683d048537604e4562ea758968060d62) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/combo-layer2
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):
507 f.close() 507 f.close()
508 if of: 508 if of:
509 of.close() 509 of.close()
510 bb.utils.rename(patchfile + '.tmp', patchfile) 510 os.rename(of.name, patchfile)
511 511
512def drop_to_shell(workdir=None): 512def drop_to_shell(workdir=None):
513 if not sys.stdin.isatty(): 513 if not sys.stdin.isatty():