diff options
author | Xiaobing Luo <luoxiaobing0926@gmail.com> | 2022-06-09 11:47:03 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-22 23:46:28 +0100 |
commit | 38f2a7717646e68953675757fd7b73c66450c979 (patch) | |
tree | 9dbd8c00edd2423afa005cc1396cf994931bf775 /scripts | |
parent | e6617042c1ebf744b04aa90644407dfc0b607ca5 (diff) | |
download | poky-38f2a7717646e68953675757fd7b73c66450c979.tar.gz |
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/devtool/standard.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 01fb5ad96f..4b50e3c63b 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py | |||
@@ -353,7 +353,7 @@ def _move_file(src, dst, dry_run_outdir=None, base_outdir=None): | |||
353 | bb.utils.mkdirhier(dst_d) | 353 | bb.utils.mkdirhier(dst_d) |
354 | shutil.move(src, dst) | 354 | shutil.move(src, dst) |
355 | 355 | ||
356 | def _copy_file(src, dst, dry_run_outdir=None): | 356 | def _copy_file(src, dst, dry_run_outdir=None, base_outdir=None): |
357 | """Copy a file. Creates all the directory components of destination path.""" | 357 | """Copy a file. Creates all the directory components of destination path.""" |
358 | dry_run_suffix = ' (dry-run)' if dry_run_outdir else '' | 358 | dry_run_suffix = ' (dry-run)' if dry_run_outdir else '' |
359 | logger.debug('Copying %s to %s%s' % (src, dst, dry_run_suffix)) | 359 | logger.debug('Copying %s to %s%s' % (src, dst, dry_run_suffix)) |