From 8de7995ae6388e5ae5418cb6af579281121f14a4 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sat, 8 Oct 2022 12:19:40 -0400 Subject: 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. --- .../emacs-lisp/package-resources/ustar-withsub-0.1.tar | Bin 0 -> 10240 bytes .../emacs-lisp/package-resources/v7-withsub-0.1.tar | Bin 0 -> 10240 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 test/lisp/emacs-lisp/package-resources/ustar-withsub-0.1.tar create mode 100644 test/lisp/emacs-lisp/package-resources/v7-withsub-0.1.tar (limited to 'test/lisp/emacs-lisp/package-resources') diff --git a/test/lisp/emacs-lisp/package-resources/ustar-withsub-0.1.tar b/test/lisp/emacs-lisp/package-resources/ustar-withsub-0.1.tar new file mode 100644 index 00000000000..009c4fc420c Binary files /dev/null and b/test/lisp/emacs-lisp/package-resources/ustar-withsub-0.1.tar differ diff --git a/test/lisp/emacs-lisp/package-resources/v7-withsub-0.1.tar b/test/lisp/emacs-lisp/package-resources/v7-withsub-0.1.tar new file mode 100644 index 00000000000..16c79e529f4 Binary files /dev/null and b/test/lisp/emacs-lisp/package-resources/v7-withsub-0.1.tar differ -- cgit v1.2.3