]> git.eshelyaron.com Git - emacs.git/commit
package.el: Understand a few more variations in tarball formats
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 8 Oct 2022 16:19:40 +0000 (12:19 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 8 Oct 2022 16:19:40 +0000 (12:19 -0400)
commit8de7995ae6388e5ae5418cb6af579281121f14a4
tree4371ff552e436b835824caf09d321c9ef585d7e8
parentb8ab4f018bd541caf8d7b71e0b1bd6f81f2d3bbb
package.el: Understand a few more variations in tarball formats

* lisp/emacs-lisp/package.el (package-untar-buffer): Fix thinko.
(package-tar-file-info): Handle the case where the first file is in
a subdirectory.

* test/lisp/emacs-lisp/package-tests.el (package-test-bug58367): New test.
* test/lisp/emacs-lisp/package-resources/ustar-withsub-0.1.tar:
* test/lisp/emacs-lisp/package-resources/v7-withsub-0.1.tar: New files.
lisp/emacs-lisp/package.el
test/lisp/emacs-lisp/package-resources/ustar-withsub-0.1.tar [new file with mode: 0644]
test/lisp/emacs-lisp/package-resources/v7-withsub-0.1.tar [new file with mode: 0644]
test/lisp/emacs-lisp/package-tests.el