Skip to content

Commit

Permalink
Fix bug introduced by 2046f58
Browse files Browse the repository at this point in the history
This should provide a fix for #3, and not effect the init.el file.
  • Loading branch information
larstvei committed Feb 26, 2017
1 parent 2046f58 commit 271b0a3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions try.el
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ to a raw .el file. Packages are stored in `try-tmp-dir' and raw
(package-symbol (intern url-or-package)))
(cond ((try-raw-link-p url-or-package) (try-raw-link url-or-package))
((try-package-exists-p package-symbol)
(let ((package-selected-packages nil) ; Don't store packages
(package-user-dir try-tmp-dir)
(let ((package-user-dir try-tmp-dir)
(package-alist nil))
(package-install package-symbol)
(if (version< emacs-version "25.1")
(package-install package-symbol)
(package-install package-symbol 'dont-select))
(message "Trying %s!" url-or-package)))
(t (message (concat "Couldn't find a sensible way to try this. "
"Try running `package-refresh-contents'!"))))))
Expand Down

0 comments on commit 271b0a3

Please sign in to comment.