1
Fork 0
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:
Stefan Kangas 2025-03-02 04:12:57 +01:00
parent 38782e684b
commit 735eace97b
2 changed files with 14 additions and 2 deletions

View file

@ -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 ()