mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02: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: 5e6f4d0d3d314897b8ab2f45b3a78b0da9df99ab)
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>
(cherry picked from commit a45d9dc089fb2719ca69b92870917f8c0925f632)
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
e6617042c1
commit
38f2a77176
@@ -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