Permalink
Browse files

util.sh

* add support for xz and xz compressed tar archives to Fextract
* fix lzma extraction support in Fextract
  • Loading branch information...
1 parent cd4606c commit ace4ad34fa210f6fc3d2cfc2f7d7766f5e494872 James Buren committed Apr 25, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 source/include/util.sh
@@ -1402,6 +1402,8 @@ Fextract() {
cmd="tar $_F_extract_taropts --use-compress-program=bzip2 -xf $file" ;;
*.tar.lzma)
cmd="tar $_F_extract_taropts --use-compress-program=lzma -xf $file" ;;
+ *.tar.xz)
+ cmd="tar $_F_extract_taropts --use-compress-program=xz -xf $file" ;;
*.tar)
cmd="tar $_F_extract_taropts -xf $file" ;;
*.zip|*.xpi)
@@ -1416,7 +1418,9 @@ Fextract() {
*.bz2)
cmd="bunzip2 -f $file" ;;
*.lzma)
- cmd="lzma -f $file" ;;
+ cmd="unlzma -f $file" ;;
+ *.xz)
+ cmd="unxz -f $file" ;;
*.7z)
cmd="7z x $file" ;;
*)

0 comments on commit ace4ad3

Please sign in to comment.