From 42ac78dad8f78baab2ce4089e6b824caded39218 Mon Sep 17 00:00:00 2001 From: Donald Curtis Date: Mon, 14 May 2012 10:01:40 -0500 Subject: [PATCH] Ignore duplicate files in tar. Sometimes the name-pkg.el file is included but gets included twice because we also add our own version. This causes problems when installing. The `tar' will list both files and extract only one and the tar mode for Emacs doesn't behave nicely. --- package-build.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-build.el b/package-build.el index 29eb53a3..24fbeb68 100644 --- a/package-build.el +++ b/package-build.el @@ -585,7 +585,7 @@ FILES is a list of (SOURCE . DEST) relative filepath pairs." (expand-file-name (concat file-name "-" version ".tar") package-build-archive-dir) pkg-dir - (append (mapcar 'cdr files) (list pkg-file))) + (delete-dups (append (mapcar 'cdr files) (list pkg-file)))) (delete-directory pkg-dir t nil) (pb/add-to-archive-contents pkg-info 'tar)))