From 4e5b2905b463333f344899211423fabf72ddddec Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Wed, 27 Mar 2013 18:22:09 +0000 Subject: [PATCH] Preserve line-ending encoding of single-file packages See #619 --- package-build.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package-build.el b/package-build.el index bf77de73..aaf87f08 100644 --- a/package-build.el +++ b/package-build.el @@ -714,10 +714,11 @@ FILES is a list of (SOURCE . DEST) relative filepath pairs." cfg))) (when (file-exists-p pkg-target) (delete-file pkg-target t)) - (with-temp-buffer - (insert-file-contents pkg-source) + (copy-file pkg-source pkg-target) + (with-current-buffer (find-file pkg-target) (pb/update-or-insert-version version) - (write-file pkg-target)) + (write-file pkg-target nil) + (kill-buffer)) (pb/write-pkg-readme (and (> (length pkg-info) 4) (aref pkg-info 4)) file-name)