summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/package.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2010-11-10 16:35:06 -0500
committerChong Yidong <cyd@stupidchicken.com>2010-11-10 16:35:06 -0500
commitfbe3be3fa2ea5921501649f741168165312d162b (patch)
treee51708119ef84e6fd9f1aaa627bed2d5cc2e77fa /lisp/emacs-lisp/package.el
parentc97685d424703ac7eb195b0adede3ebd54cab23d (diff)
downloademacs-fbe3be3fa2ea5921501649f741168165312d162b.tar.gz
emacs-fbe3be3fa2ea5921501649f741168165312d162b.tar.bz2
emacs-fbe3be3fa2ea5921501649f741168165312d162b.zip
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.
Diffstat (limited to 'lisp/emacs-lisp/package.el')
-rw-r--r--lisp/emacs-lisp/package.el1
1 files changed, 1 insertions, 0 deletions
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))))