mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
devtool: Fix _copy_file() TypeError
when devtool finish, the _copy_file() failed.
--------------------------------------------
TypeError: _copy_file() got an unexpected keyword argument
'base_outdir'
--------------------------------------------
Fixes: 05f2d5d2ce00 ("devtool: finish: add dry-run option")
(From OE-Core rev: a45d9dc089fb2719ca69b92870917f8c0925f632)
Signed-off-by: Xiaobing Luo <luoxiaobing0926@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f707d9bb96
commit
504b13b615
@@ -353,7 +353,7 @@ def _move_file(src, dst, dry_run_outdir=None, base_outdir=None):
|
||||
bb.utils.mkdirhier(dst_d)
|
||||
shutil.move(src, dst)
|
||||
|
||||
def _copy_file(src, dst, dry_run_outdir=None):
|
||||
def _copy_file(src, dst, dry_run_outdir=None, base_outdir=None):
|
||||
"""Copy a file. Creates all the directory components of destination path."""
|
||||
dry_run_suffix = ' (dry-run)' if dry_run_outdir else ''
|
||||
logger.debug('Copying %s to %s%s' % (src, dst, dry_run_suffix))
|
||||
|
||||
Reference in New Issue
Block a user