summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-04-04 22:24:42 +0200
committerLudovic Courtès <ludo@gnu.org>2021-04-05 12:03:09 +0200
commit6f32e27e970c2f92e5ee1b5b5ce513c61484178e (patch)
treef787a11ad90af0d1ec60135bdc4f9816ea236741
parente917027d1f6152475777239fa87a230039f355bb (diff)
downloadguix-6f32e27e970c2f92e5ee1b5b5ce513c61484178e.tar.gz
utils: 'tarball-sans-extension' recognizes ".tgz".
* guix/utils.scm (tarball-sans-extension): Add ".tgz".
-rw-r--r--guix/utils.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/guix/utils.scm b/guix/utils.scm
index 2dd1ddeb8a..05af86fc37 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -696,6 +696,7 @@ VERSIONS.  For example:
 (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)))