mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-15 05:35:53 +02:00
utils: ‘compressed-file?’ recognizes .zst and .tzst.
This ensures ‘guix publish’ does not re-compress zst files. * guix/utils.scm (compressed-file?): Add ‘tzst’ and ‘zst’. Change-Id: Iae39e8826f1fc242d2e15d86c82a8ff84797002e
This commit is contained in:
+2
-1
@@ -973,7 +973,8 @@ VERSIONS. For example:
|
||||
(define (compressed-file? file)
|
||||
"Return true if FILE denotes a compressed file."
|
||||
(->bool (member (file-extension file)
|
||||
'("gz" "bz2" "xz" "lz" "lzma" "tgz" "tbz2" "zip"))))
|
||||
'("gz" "bz2" "xz" "lz" "lzma" "tgz" "tbz2" "tzst"
|
||||
"zip" "zst"))))
|
||||
|
||||
(define* (string-replace-substring str substr replacement
|
||||
#:optional
|
||||
|
||||
Reference in New Issue
Block a user