Fix tar package handling, and clean up package-subdirectory-regexp usage.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 19 Mar 2011 18:27:55 +0000 (14:27 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 19 Mar 2011 18:27:55 +0000 (14:27 -0400)
commit4525ce3eb56a1f4b7c50eac9217854bbd170f660
tree70e078b783c5886fc4e411734c39547678d5e7c9
parent0a19a6f87504ef65b1c946d5daa34b794d600b20
Fix tar package handling, and clean up package-subdirectory-regexp usage.

* lisp/startup.el (package-subdirectory-regexp): Move from package.el.
Omit \\` and \\', and let callers add them.

* lisp/emacs-lisp/package.el (package-strip-version)
(package-load-all-descriptors): Add \\` and \\' to
package-subdirectory-regexp before using it.
(package-untar-buffer): New arg DIR; ensure that file untars only
into this expected directory.  Remove superfluous delete-region.
(package-unpack): Caller changed.
(package-tar-file-info): Use package-subdirectory-regexp.
lisp/ChangeLog
lisp/emacs-lisp/package.el
lisp/startup.el