mirror of
https://github.com/vale981/melpazoid
synced 2025-03-05 17:31:38 -05:00
prefer shutil.copy over subprocess run cp
This commit is contained in:
parent
98b2787751
commit
a76ca0a048
1 changed files with 3 additions and 3 deletions
|
@ -124,7 +124,7 @@ def check_containerized_build(recipe: str, elisp_dir: str):
|
|||
target = os.path.basename(file) if file.endswith('.el') else file
|
||||
target = os.path.join(_PKG_SUBDIR, target)
|
||||
os.makedirs(os.path.dirname(target), exist_ok=True)
|
||||
subprocess.run(['cp', '-r', os.path.join(elisp_dir, file), target], check=True)
|
||||
shutil.copy(os.path.join(elisp_dir, file), target)
|
||||
files[ii] = target
|
||||
_write_requirements(files, recipe)
|
||||
cmd = ['make', '-C', _MELPAZOID_ROOT, 'test']
|
||||
|
@ -664,7 +664,7 @@ def check_melpa_recipe(recipe: str):
|
|||
clone_address = _clone_address(recipe)
|
||||
if _local_repo():
|
||||
print(f"Using local repository at {_local_repo()}")
|
||||
subprocess.run(['cp', '-r', _local_repo(), elisp_dir], check=True)
|
||||
shutil.copy(_local_repo(), elisp_dir)
|
||||
_run_checks(recipe, elisp_dir)
|
||||
elif _clone(clone_address, elisp_dir, _branch(recipe), _fetcher(recipe)):
|
||||
_run_checks(recipe, elisp_dir)
|
||||
|
@ -680,7 +680,7 @@ def check_license(recipe: str):
|
|||
clone_address = _clone_address(recipe)
|
||||
if _local_repo():
|
||||
print(f"Using local repository at {_local_repo()}")
|
||||
subprocess.run(['cp', '-r', _local_repo(), elisp_dir], check=True)
|
||||
shutil.copy(_local_repo(), elisp_dir)
|
||||
_check_license(recipe, elisp_dir)
|
||||
elif _clone(clone_address, elisp_dir, _branch(recipe), _fetcher(recipe)):
|
||||
_check_license(recipe, elisp_dir)
|
||||
|
|
Loading…
Add table
Reference in a new issue