Ticket #2739: add support of PAR archives.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2012-10-05 12:51:14 +03:00 committed by Andrew Borodin
parent 72db209691
commit c44aabebe7
2 changed files with 7 additions and 0 deletions

View File

@ -128,6 +128,9 @@ do_open_action() {
xz) xz)
xz -dc "${MC_EXT_FILENAME}" | ${pager} xz -dc "${MC_EXT_FILENAME}" | ${pager}
;; ;;
par2)
par2 r "${MC_EXT_FILENAME}"
;;
*) *)
;; ;;
esac esac

View File

@ -726,6 +726,10 @@ regex/\.xz$
Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more} Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more}
View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
# Parity Archive
type/^Parity\ Archive\ Volume\ Set
Open=@EXTHELPERSDIR@/archive.sh open par2
### Default ### ### Default ###
# Default target for anything not described above # Default target for anything not described above