mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-29 04:58:53 +08:00
f4ce3bc177
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.
19 lines
664 B
EmacsLisp
19 lines
664 B
EmacsLisp
;;; When installing a package whose name is a prefix of an already
|
|
;;; installed package, `el-get-elpa-package-directory' gets confused.
|
|
|
|
(require 'cl-lib)
|
|
|
|
(setq el-get-sources
|
|
'((:name load-dir ; I tried to pick the smallest package
|
|
:type elpa
|
|
:description "Load all Emacs Lisp files in a given directory"
|
|
:repo ("gnu" . "http://elpa.gnu.org/packages/"))))
|
|
|
|
(el-get 'sync 'load-dir)
|
|
|
|
(cl-assert (not (equal (el-get-elpa-package-directory 'load)
|
|
(el-get-elpa-package-directory 'load-dir)))
|
|
nil
|
|
"a package name `load' shouldn't use the same directory
|
|
as `load-dir'.")
|