From 1de33588fc240415b9b01f031a9fb7c323a259ef Mon Sep 17 00:00:00 2001 From: Donald Curtis Date: Thu, 28 Mar 2013 17:05:47 -0500 Subject: [PATCH] always remove the old archive before rebuilding --- package-build.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package-build.el b/package-build.el index ab7e27e9..233099af 100644 --- a/package-build.el +++ b/package-build.el @@ -711,6 +711,10 @@ FILES is a list of (SOURCE . DEST) relative filepath pairs." (file-name-as-directory (expand-file-name file-name package-build-working-dir)))) + + (let ((archive-entry (assq name (package-build-archive-alist)))) + (when archive-entry (pb/remove-archive archive-entry))) + (message "\n;;; %s\n" file-name) (let* ((version (pb/checkout name cfg pkg-cwd)) (files (pb/expand-config-file-list pkg-cwd cfg))