From: Ross Burton Date: Wed, 7 Dec 2022 16:36:49 +0000 (+0000) Subject: combo-layer: dont use bb.utils.rename X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~2336 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=528f4fb3683d048537604e4562ea758968060d62;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/scripts/combo-layer b/scripts/combo-layer index c122f4b5e44..e467f390c1e 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():