mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
utils: 'tarball-sans-extension' recognizes ".tgz".
* guix/utils.scm (tarball-sans-extension): Add ".tgz".
This commit is contained in:
parent
e917027d1f
commit
6f32e27e97
1 changed files with 1 additions and 0 deletions
|
@ -696,6 +696,7 @@ (define (file-sans-extension file)
|
|||
(define (tarball-sans-extension tarball)
|
||||
"Return TARBALL without its .tar.* or .zip extension."
|
||||
(let ((end (or (string-contains tarball ".tar")
|
||||
(string-contains tarball ".tgz")
|
||||
(string-contains tarball ".zip"))))
|
||||
(substring tarball 0 end)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue