[core] Remove unecessary check for gzip executable on Windows

Turns out we don't use it at all. Also tar.exe is part of the standard
MS Windows 10 distribution, it is installed in system32 directory.
This commit is contained in:
syl20bnr 2019-08-21 22:44:03 -04:00
parent b800694d32
commit 4a8a8b04af
1 changed files with 17 additions and 26 deletions

View File

@ -2686,33 +2686,24 @@ MSG is an additional message append to the generic error."
(spacemacs-buffer/set-mode-line
(format (concat "Downloading stable ELPA repository: %s... "
"(please wait)") name) t)
(if (and (spacemacs/system-is-mswindows)
(not (executable-find "gzip")))
;; additional check on Windows platform as tarball are not handled
;; natively and requires the installation of gzip.
(configuration-layer//executable-not-found-error
"gzip"
(concat
"\nDownload and install gzip here: "
"http://gnuwin32.sourceforge.net/packages/gzip.htm. "))
;; download tarball and detached signature
(make-directory configuration-layer-stable-elpa-directory t)
(url-copy-file url local 'ok-if-already-exists)
;; download tarball and detached signature
(make-directory configuration-layer-stable-elpa-directory t)
(url-copy-file url local 'ok-if-already-exists)
(when dotspacemacs-verify-spacelpa-archives
(url-copy-file url-sig local-sig 'ok-if-already-exists))
;; extract
(when (configuration-layer//stable-elpa-untar-archive)
;; delete archive
(delete-file local)
(when dotspacemacs-verify-spacelpa-archives
(url-copy-file url-sig local-sig 'ok-if-already-exists))
;; extract
(when (configuration-layer//stable-elpa-untar-archive)
;; delete archive
(delete-file local)
(when dotspacemacs-verify-spacelpa-archives
(delete-file local-sig))
;; update version file
(with-current-buffer (find-file-noselect
configuration-layer--stable-elpa-version-file)
(erase-buffer)
(beginning-of-buffer)
(insert (format "%s" configuration-layer-stable-elpa-version))
(save-buffer)))))))
(delete-file local-sig))
;; update version file
(with-current-buffer (find-file-noselect
configuration-layer--stable-elpa-version-file)
(erase-buffer)
(beginning-of-buffer)
(insert (format "%s" configuration-layer-stable-elpa-version))
(save-buffer))))))
;; (configuration-layer/create-elpa-repository
;; "spacelpa"