mirror of
https://github.com/vale981/melpazoid
synced 2025-03-05 09:21:39 -05:00
fix check on key/attribute order on recipe to allow :url
This commit is contained in:
parent
1c25f445e9
commit
6f03e72b6e
1 changed files with 2 additions and 2 deletions
|
@ -575,8 +575,8 @@ def _check_recipe(recipe: str, elisp_dir: Path) -> None:
|
||||||
_fail(f"- No .el file matches the name '{package_name(recipe)}'")
|
_fail(f"- No .el file matches the name '{package_name(recipe)}'")
|
||||||
if ':url' in recipe and 'https://github.com' in recipe:
|
if ':url' in recipe and 'https://github.com' in recipe:
|
||||||
_fail('- Use `:fetcher github :repo <repo>` instead of `:url`')
|
_fail('- Use `:fetcher github :repo <repo>` instead of `:url`')
|
||||||
if recipe.index(':fetcher') > recipe.index(':repo'):
|
if recipe.index(':fetcher') > max(recipe.find(':repo'), recipe.find(':url')):
|
||||||
_note('- Specify `:fetcher` before `:repo` in your recipe', CLR_WARN)
|
_note('- Specify `:fetcher` before `:repo` or `:url` in your recipe', CLR_WARN)
|
||||||
if ':files' in recipe:
|
if ':files' in recipe:
|
||||||
try:
|
try:
|
||||||
files_default_recipe = _files_in_recipe(_default_recipe(recipe), elisp_dir)
|
files_default_recipe = _files_in_recipe(_default_recipe(recipe), elisp_dir)
|
||||||
|
|
Loading…
Add table
Reference in a new issue