2012-02-14 04:38:38 +08:00
|
|
|
;; https://github.com/dimitri/el-get/issues/513
|
|
|
|
;;
|
|
|
|
;; Testing the github and emacsmirror methods
|
|
|
|
|
2012-03-19 03:33:04 +08:00
|
|
|
(setq debug-on-error t
|
|
|
|
el-get-verbose t)
|
2012-02-21 07:06:57 +08:00
|
|
|
|
2012-03-19 03:33:04 +08:00
|
|
|
;; 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)))
|