diff options
author | Xinglu Chen <public@yoctocell.xyz> | 2021-06-20 20:44:44 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-06-26 22:45:28 +0200 |
commit | d822c592438d025107c95dc49435a4c9c3cfd863 (patch) | |
tree | 6974627a20e9fddd5492ad915078577a60dfa475 /etc/snippets/scheme-mode/guix-origin | |
parent | 1f15a6559b308fdfec97bda09b03801582e7b302 (diff) | |
download | guix-d822c592438d025107c95dc49435a4c9c3cfd863.tar.gz |
etc: snippets: Use ‘hg-file-name’ when origin uses ‘hg-fetch’
Adjust to changes in commit aaafd19bd1e37265de07e246286a6819792c25b4. * etc/snippets/scheme-mode/guix-origin: Use ‘hg-file-name’ instead of ‘string-append’ when ‘method’ for origin is ‘hg-fetch’. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'etc/snippets/scheme-mode/guix-origin')
-rw-r--r-- | etc/snippets/scheme-mode/guix-origin | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/snippets/scheme-mode/guix-origin b/etc/snippets/scheme-mode/guix-origin index 2820a369f3..eb0cdc8242 100644 --- a/etc/snippets/scheme-mode/guix-origin +++ b/etc/snippets/scheme-mode/guix-origin @@ -19,7 +19,9 @@ (t "(string-append \\"https://\\" version \\".tar.gz\\")"))}$0) ${1:$(cond ((equal yas-text "git-fetch") "(file-name (git-file-name name version))") - ((member yas-text '("svn-fetch" "hg-fetch" "cvs-fetch" "bzr-fetch")) + ((equal yas-text "hg-fetch") + "(file-name (hg-file-name name version))") + ((member yas-text '("svn-fetch" "cvs-fetch" "bzr-fetch")) "(file-name (string-append name \\"-\\" version \\"-checkout\\"))") (t ""))} (sha256 |