Skip to contentSkip to conversation

devtool: Fix _copy_file() TypeError

PATCH New Xiaobing Luo 1 participant 1 message Jun 9, 2022

lore
Share & tools
lore
#0 lore raw

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")
---
 scripts/lib/devtool/standard.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/devtool/standard.py +1 -1
index 01fb5ad96ff6..4b50e3c63bac 100644
@@ -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