mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-30 05:29:52 +08:00
24 lines
767 B
EmacsLisp
24 lines
767 B
EmacsLisp
;; https://github.com/dimitri/el-get/issues/513
|
|
;;
|
|
;; Testing the github and emacsmirror methods
|
|
|
|
(let ((debug-on-error t)
|
|
;; (el-get-byte-compile nil)
|
|
(el-get-verbose t))
|
|
(require 'el-get)
|
|
;; Install a github-type recipe
|
|
(el-get 'sync 'window-layout)
|
|
;; Install an emacsmirror-type recipe
|
|
(el-get 'sync 'dired-plus)
|
|
|
|
(condition-case err
|
|
(progn
|
|
;; Should fail
|
|
(let ((el-get-sources
|
|
'((:name broken-pkg
|
|
:type github))))
|
|
(el-get 'sync 'broken-pkg))
|
|
(signal 'test-failure
|
|
'("The package\"broken-pkg\" should have caused an error, but it didn't.")))
|
|
(error (message "Installing \"broken-pkg\" failed as expected. The error message was: %S" err))))
|