Use external tar program for extracting archive

This commit is contained in:
Codruț Constantin Gușoi 2019-02-01 00:57:46 +02:00
parent dc53608b65
commit a2bda16823
1 changed files with 7 additions and 2 deletions

View File

@ -2649,8 +2649,13 @@ ELPA stable repository."
(when untar
(spacemacs-buffer/set-mode-line
(format "Extracting %s archive..." name) t)
(tar-mode)
(tar-untar-buffer)))
(if (and (spacemacs/system-is-mswindows)
(not (executable-find "tar")))
(progn
(configuration-layer//error
(concat "Error: Cannot find tar executable in you PATH.\n"
"Spacelpa installation has been skipped!")))
(call-process "tar" nil nil nil "-xzf" archive))))
untar))
(defun configuration-layer/stable-elpa-download-tarball ()