Commit 764ea8c8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

erc: add support for repack tgz->tar in 7z mode

parent bd3fbd0f
...@@ -170,7 +170,7 @@ repack_archive() ...@@ -170,7 +170,7 @@ repack_archive()
local ftype="$(get_archive_type "$1")" local ftype="$(get_archive_type "$1")"
local ttype="$(get_archive_type "$2")" local ttype="$(get_archive_type "$2")"
case "$ftype-$ttype" in case "$ftype-$ttype" in
tar.*-tar) tar.*-tar|tgz-tar)
docmd $HAVE_7Z x -so "$1" > "$2" docmd $HAVE_7Z x -so "$1" > "$2"
;; ;;
tar-tar.*) tar-tar.*)
...@@ -180,7 +180,7 @@ repack_archive() ...@@ -180,7 +180,7 @@ repack_archive()
docmd $HAVE_7Z x -so "$1" | $HAVE_7Z a -si "$2" docmd $HAVE_7Z x -so "$1" | $HAVE_7Z a -si "$2"
;; ;;
*) *)
fatal "Not yet supported repack of $ftype-$ttype archives" fatal "Not yet supported repack of $ftype-$ttype archives in 7z mode (try install patool)"
;; ;;
esac esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment