mirror of
https://github.com/larstvei/Try.git
synced 2024-11-26 03:28:31 +00:00
Fix bug introduced by 2046f58
This should provide a fix for #3, and not effect the init.el file.
This commit is contained in:
parent
2046f582ce
commit
271b0a362c
5
try.el
5
try.el
@ -87,10 +87,11 @@ to a raw .el file. Packages are stored in `try-tmp-dir' and raw
|
|||||||
(package-symbol (intern url-or-package)))
|
(package-symbol (intern url-or-package)))
|
||||||
(cond ((try-raw-link-p url-or-package) (try-raw-link url-or-package))
|
(cond ((try-raw-link-p url-or-package) (try-raw-link url-or-package))
|
||||||
((try-package-exists-p package-symbol)
|
((try-package-exists-p package-symbol)
|
||||||
(let ((package-selected-packages nil) ; Don't store packages
|
(let ((package-user-dir try-tmp-dir)
|
||||||
(package-user-dir try-tmp-dir)
|
|
||||||
(package-alist nil))
|
(package-alist nil))
|
||||||
|
(if (version< emacs-version "25.1")
|
||||||
(package-install package-symbol)
|
(package-install package-symbol)
|
||||||
|
(package-install package-symbol 'dont-select))
|
||||||
(message "Trying %s!" url-or-package)))
|
(message "Trying %s!" url-or-package)))
|
||||||
(t (message (concat "Couldn't find a sensible way to try this. "
|
(t (message (concat "Couldn't find a sensible way to try this. "
|
||||||
"Try running `package-refresh-contents'!"))))))
|
"Try running `package-refresh-contents'!"))))))
|
||||||
|
Loading…
Reference in New Issue
Block a user