Commit 160a0871 authored by Vitaly Lipatov's avatar Vitaly Lipatov

erc: support repack for any format pair with 7z backend

parent 0e1ae098
......@@ -262,7 +262,7 @@ test_archive()
}
__repack_zip_tar()
__repack_via_tmp()
{
sfile="$(realpath -s "$1")"
dfile="$(realpath -s "$2")"
......@@ -296,11 +296,8 @@ repack_archive()
tar.*-tar.*)
docmd $HAVE_7Z x -so "$1" | $HAVE_7Z a -si "$2"
;;
zip-tar)
__repack_zip_tar "$1" "$2"
;;
*)
fatal "Not yet supported repack $ftype to $ttype archives in 7z mode (try install patool)"
__repack_via_tmp "$1" "$2"
;;
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