el-get/test/issues/el-get-issue-583.el
Stephan Creutz f4ce3bc177 Fix several regression tests
Many regression tests broke after the removal of "cl", because they
assumed "cl" is implicitly loaded. Others regression tests broke for
other reasons.

The commit fixes _not_ all regression tests. This is meant to be the
first wave.
2021-11-13 22:57:24 +01:00

30 lines
853 B
EmacsLisp

;; https://github.com/dimitri/el-get/issues/583
;;
;; Installing, removing, and installing a package doesn't
;;
;; Also related: https://github.com/dimitri/el-get/issues/576
(require 'cl-lib)
(setq el-get-default-process-sync t
el-get-verbose t
el-get-sources
'((:name a :type builtin :depends
(b c d e f))
(:name b :type builtin)
(:name c :type builtin)
(:name d :type builtin)
(:name e :type builtin)
(:name f :type builtin)))
;; Ensure a is uninstalled
(ignore-errors (el-get-remove 'a))
;; Install a and all deps
(el-get-install 'a)
;; Remove a, leaving deps installed
(el-get-remove 'a)
;; Try to install a again, this fails and only inits b and c.
(el-get-install 'a)
(cl-assert (el-get-package-is-installed 'a) nil
"Package A should be installed but isn't.")