1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

emacs-lisp/package-x.el: Create valid tar files

* emacs-lisp/package-x.el (package-upload-buffer-internal):
Create valid tar files. (Bug#19536)
This commit is contained in:
Kelly Dean 2015-02-16 04:19:41 +00:00 committed by Artur Malabarba
parent 1e00ee2497
commit 1f2c4f817e
2 changed files with 6 additions and 1 deletions

View file

@ -247,7 +247,7 @@ if it exists."
(concat (symbol-name pkg-name) "-readme.txt")
package-archive-upload-base)))
(set-buffer pkg-buffer)
(set-buffer (if (eq file-type 'tar) tar-data-buffer pkg-buffer))
(write-region (point-min) (point-max)
(expand-file-name
(format "%s-%s.%s" pkg-name pkg-version extension)