mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-01 09:51:22 -08:00
Make package-install accept a string as well
* lisp/emacs-lisp/package.el (package-install): Allow passing a string instead of a symbol. (Bug#72160) (package-upgrade): Improve docstring. * test/lisp/emacs-lisp/package-tests.el (package-test-install-single-from-archive/string-type): New test.
This commit is contained in:
parent
38782e684b
commit
735eace97b
2 changed files with 14 additions and 2 deletions
|
|
@ -450,6 +450,13 @@ but with a different end of line convention (bug#48137)."
|
|||
(package-refresh-contents)
|
||||
(package-install 'simple-single)))
|
||||
|
||||
(ert-deftest package-test-install-single-from-archive/string-type ()
|
||||
"Install a single package from a package archive, using string argument."
|
||||
(with-package-test ()
|
||||
(package-initialize)
|
||||
(package-refresh-contents)
|
||||
(package-install "simple-single")))
|
||||
|
||||
(ert-deftest package-test-install-prioritized ()
|
||||
"Install a lower version from a higher-prioritized archive."
|
||||
(with-package-test ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue