Mercurial > hg > xemacs-beta
diff lisp/package-get.el @ 678:8e8a7b205142
[xemacs-hg @ 2001-11-29 17:00:38 by youngs]
2001-11-28 Steve Youngs <youngs@xemacs.org>
* package-get.el (package-get-locate-index-file): Also search the
core etc/ directory for the package index file if it can't be
found in ~/.xemacs/.
author | youngs |
---|---|
date | Thu, 29 Nov 2001 17:00:39 +0000 |
parents | a6c89d799f00 |
children | c00aa0615465 |
line wrap: on
line diff
--- a/lisp/package-get.el Tue Nov 27 19:00:29 2001 +0000 +++ b/lisp/package-get.el Thu Nov 29 17:00:39 2001 +0000 @@ -359,7 +359,9 @@ is non-nil." (or (package-get-locate-file package-get-base-filename t no-remote) (if (file-exists-p package-get-user-index-filename) - package-get-user-index-filename))) + package-get-user-index-filename) + (locate-data-file package-get-base-filename) + (error "Can't locate a package index file."))) (defun package-get-maybe-save-index (filename) "Offer to save the current buffer as the local package index file,