]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vim: deb: sync with current version in Debian sid
authorSimon Ruderich <simon@ruderich.org>
Fri, 13 Jul 2018 10:09:26 +0000 (12:09 +0200)
committerSimon Ruderich <simon@ruderich.org>
Fri, 13 Jul 2018 10:09:26 +0000 (12:09 +0200)
Adds support for data.tar.xz files.

vim/vim/bundle/deb/autoload/deb.vim

index 9e6fd1e49567ec4a388b9167997435118419690c..f10de6bbc5e7bfb72d9682dc79af6d48da292806 100644 (file)
@@ -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