From: Chong Yidong Date: Wed, 10 Nov 2010 21:35:06 +0000 (-0500) Subject: Minor fix to package-archive-contents recalculation. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~45^2~306 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fbe3be3fa2ea5921501649f741168165312d162b;p=emacs.git 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. --- 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))))