mirror of
https://github.com/vale981/melpazoid
synced 2025-03-05 09:21:39 -05:00
fix "value as variable is void: package-build-use-git-remote-hg"
This commit is contained in:
parent
71ad893065
commit
cad60971ae
1 changed files with 2 additions and 1 deletions
|
@ -833,7 +833,7 @@ def _recipe_struct_elisp(recipe: str) -> str:
|
|||
"""Turn the recipe into a serialized 'package-recipe' object.
|
||||
Throw a ChildProcessError if Emacs encounters a problem.
|
||||
>>> _recipe_struct_elisp('(melpazoid :fetcher github :repo "xyz")')
|
||||
'#s(package-github-recipe "melpazoid" nil "xyz" nil nil nil nil nil nil)'
|
||||
'#s(package-github-recipe "melpazoid" nil "xyz" nil nil nil nil nil nil nil nil)'
|
||||
"""
|
||||
name = package_name(recipe)
|
||||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
|
@ -841,6 +841,7 @@ def _recipe_struct_elisp(recipe: str) -> str:
|
|||
file.write(recipe)
|
||||
return eval_elisp(
|
||||
f"""
|
||||
(require 'package-build)
|
||||
(require 'package-recipe)
|
||||
(setq package-build-recipes-dir "{tmpdir}")
|
||||
(send-string-to-terminal (format "%S" (package-recipe-lookup "{name}")))
|
||||
|
|
Loading…
Add table
Reference in a new issue