From 1f2c4f817ee37c7c7767e22eda1c427456885b6b Mon Sep 17 00:00:00 2001 From: Kelly Dean Date: Mon, 16 Feb 2015 04:19:41 +0000 Subject: [PATCH] emacs-lisp/package-x.el: Create valid tar files * emacs-lisp/package-x.el (package-upload-buffer-internal): Create valid tar files. (Bug#19536) --- lisp/ChangeLog | 5 +++++ lisp/emacs-lisp/package-x.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b3da9dcaadf..d5080d92fd5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2015-02-16 Kelly Dean + + * emacs-lisp/package-x.el (package-upload-buffer-internal): + Create valid tar files. (Bug#19536) + 2015-02-16 Kelly Dean * desktop.el (desktop-read): Conditionally re-enable desktop autosave. diff --git a/lisp/emacs-lisp/package-x.el b/lisp/emacs-lisp/package-x.el index e0945d47a45..6955ce8f5a6 100644 --- a/lisp/emacs-lisp/package-x.el +++ b/lisp/emacs-lisp/package-x.el @@ -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) -- 2.39.2