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