From fbe3be3fa2ea5921501649f741168165312d162b Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Wed, 10 Nov 2010 16:35:06 -0500 Subject: [PATCH] Minor fix to package-archive-contents recalculation. lisp/emacs-lisp/package.el (package-read-all-archive-contents): Reset package-archive-contents to nil before re-reading. --- lisp/ChangeLog | 5 +++++ lisp/emacs-lisp/package.el | 1 + 2 files changed, 6 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1a1c9640424..a7c3cb148ef 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-11-10 Chong Yidong + + * emacs-lisp/package.el (package-read-all-archive-contents): Reset + package-archive-contents to nil before re-reading. + 2010-11-10 Brandon Craig Rhodes * textmodes/flyspell.el (flyspell-word): Do not re-check words diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 6d3132c1250..fecddcf16ed 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -753,6 +753,7 @@ Will throw an error if the archive version is too new." (defun package-read-all-archive-contents () "Re-read `archive-contents', if it exists. If successful, set `package-archive-contents'." + (setq package-archive-contents nil) (dolist (archive package-archives) (package-read-archive-contents (car archive)))) -- 2.39.5