Don't attempt automatic refreshing of packages

It felt more like a bug than a feature most of the time.
This commit is contained in:
Lars Tveito 2016-02-03 00:24:25 +01:00
parent 895ac18d5c
commit 43e4fa2638

8
try.el
View File

@ -75,9 +75,6 @@
(require 'package) (require 'package)
(require 'url) (require 'url)
(defvar try-archive-contents-initial-value package-archive-contents
"Remember the initial value of `package-archive-contents' to be
able to detect the need to call `package-refresh-contents'.")
(defvar try-tmp-dir "/tmp/" (defvar try-tmp-dir "/tmp/"
"The default place packages to try out is /tmp/.") "The default place packages to try out is /tmp/.")
@ -110,11 +107,6 @@
to a raw .el file. Packages are stored in `try-tmp-dir' and raw to a raw .el file. Packages are stored in `try-tmp-dir' and raw
.el files are not stored at all." .el files are not stored at all."
(interactive) (interactive)
;; Refresh package contents if needed.
(and (eq try-archive-contents-initial-value
package-archive-contents)
(< 1 (length package-archives))
(package-refresh-contents))
;; Completions for packages. ;; Completions for packages.
(let* ((url-or-package (completing-read (let* ((url-or-package (completing-read
"url or package: " "url or package: "