mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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: acc824693463a06c77951ce913dbd356e48f711e) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 528f4fb3683d048537604e4562ea758968060d62) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e9d0e02947
commit
313c607b8f
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user