From: Simon Ruderich Date: Fri, 13 Jul 2018 10:09:26 +0000 (+0200) Subject: vim: deb: sync with current version in Debian sid X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=f4dd3268916a17498508d7794666522b34dd9796;p=config%2Fdotfiles.git vim: deb: sync with current version in Debian sid Adds support for data.tar.xz files. --- diff --git a/vim/vim/bundle/deb/autoload/deb.vim b/vim/vim/bundle/deb/autoload/deb.vim index 9e6fd1e..f10de6b 100644 --- a/vim/vim/bundle/deb/autoload/deb.vim +++ b/vim/vim/bundle/deb/autoload/deb.vim @@ -32,6 +32,8 @@ fun! deb#read(debfile, member) let l:unpcmp = "tar zxfO " elseif l:archmember == "data.tar.bz2" let l:unpcmp = "tar jxfO " + elseif l:archmember == "data.tar.xz" + let l:unpcmp = "tar JxfO " elseif l:archmember == "data.tar.lzma" if !s:hascmd("lzma") return @@ -230,7 +232,7 @@ endfun " return data file name for debian package. This can be either data.tar.gz, " data.tar.bz2 or data.tar.lzma fun s:dataFileName(deb) - for fn in ["data.tar.gz", "data.tar.bz2", "data.tar.lzma", "data.tar"] + for fn in ["data.tar.gz", "data.tar.bz2", "data.tar.lzma", "data.tar.xz", "data.tar"] " [0:-2] is to remove trailing null character from command output if (system("ar t " . "'" . a:deb . "'" . " " . fn))[0:-2] == fn return fn