devtool: Fix _copy_file() TypeError
PATCH 1/1 devtool: Fix _copy_file() TypeError
From: Xiaobing Luo <[email protected]>
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")
Signed-off-by Xiaobing Luo <[email protected]>
--- scripts/lib/devtool/standard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/devtool/standard.py +1 -1
@@ -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))
Signature · 1 line
2.25.1