mirror of
https://github.com/vale981/melpazoid
synced 2025-03-05 09:21:39 -05:00
fix license-only checker when a local repository is specified
This commit is contained in:
parent
1b6d370a6d
commit
0b6fd4e3f6
2 changed files with 2 additions and 2 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -43,4 +43,4 @@ jobs:
|
|||
- name: Test local 'melpazoid'
|
||||
env:
|
||||
CI_BRANCH: master
|
||||
run: python melpazoid/melpazoid.py ./melpazoid --recipe '(melpazoid :fetcher github :repo "riscy/melpazoid")'
|
||||
run: python melpazoid/melpazoid.py . --license --recipe '(melpazoid :fetcher github :repo "riscy/melpazoid" :files ("melpazoid/melpazoid.el"))'
|
||||
|
|
|
@ -684,7 +684,7 @@ def check_license(recipe: str) -> None:
|
|||
clone_address = _clone_address(recipe)
|
||||
if _local_repo():
|
||||
print(f"Using local repository at {_local_repo()}")
|
||||
shutil.copy(_local_repo(), elisp_dir)
|
||||
shutil.copytree(_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