From f4dd3268916a17498508d7794666522b34dd9796 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 13 Jul 2018 12:09:26 +0200 Subject: [PATCH] vim: deb: sync with current version in Debian sid Adds support for data.tar.xz files. --- vim/vim/bundle/deb/autoload/deb.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.45.2