summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorXiaobing Luo <luoxiaobing0926@gmail.com>2022-06-09 11:47:03 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-11 10:28:22 +0100
commit504b13b61581e3e7a238cb24c709da4d22006f40 (patch)
tree568936df34e86303004228f249254795db8da621 /scripts/lib
parentf707d9bb965fa6d9137efe9c9106205fe29a50ae (diff)
downloadpoky-504b13b61581e3e7a238cb24c709da4d22006f40.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: 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>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/devtool/standard.py2
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
356def _copy_file(src, dst, dry_run_outdir=None): 356def _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))