]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor fix to package-archive-contents recalculation.
authorChong Yidong <cyd@stupidchicken.com>
Wed, 10 Nov 2010 21:35:06 +0000 (16:35 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 10 Nov 2010 21:35:06 +0000 (16:35 -0500)
lisp/emacs-lisp/package.el (package-read-all-archive-contents): Reset
package-archive-contents to nil before re-reading.

lisp/ChangeLog
lisp/emacs-lisp/package.el

index 1a1c96404248c52e18515cf692e89ec978a93575..a7c3cb148ef8c41a7e447d365d9a0f971c3a6682 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-10  Chong Yidong  <cyd@stupidchicken.com>
+
+       * emacs-lisp/package.el (package-read-all-archive-contents): Reset
+       package-archive-contents to nil before re-reading.
+
 2010-11-10  Brandon Craig Rhodes <brandon@rhodesmill.org>
 
        * textmodes/flyspell.el (flyspell-word): Do not re-check words
index 6d3132c1250a239b1b764654acddf01d950ec826..fecddcf16edf1153015e642d93b109cea11f09a9 100644 (file)
@@ -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))))