Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 14a7b02a authored by Ryan C. Thompson's avatar Ryan C. Thompson

Add test for #642

parent 68fa0ebd
;; https://github.com/dimitri/el-get/issues/642
;; Reinstall on type change
(let ((debug-on-error t)
;; (el-get-byte-compile nil)
(el-get-verbose t)
(el-get-default-process-sync t))
;; Install pkg with type builtin
(let ((el-get-sources
(list `(:name pkg
:type builtin))))
(el-get 'sync 'pkg))
(assert (eq 'builtin
(el-get-package-method (el-get-read-package-status-recipe 'pkg)))
"Package type should be 'builtin.")
;; Even though "no-op" is an alias for the same behavior as
;; "builtin", they are still considered different types. Thus, this
;; should trigger a reinstall.
(let ((el-get-sources
(list `(:name pkg
:type no-op))))
(el-get-update 'pkg))
(assert (eq 'no-op
(el-get-package-method (el-get-read-package-status-recipe 'pkg)))
"Package type should now be 'no-op, not 'builtin."))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment