mirror of
https://github.com/correl/melpa.git
synced 2024-12-22 19:17:27 +00:00
don't delete the archive until a proper checkout, in case of error
This commit is contained in:
parent
e1700e86cb
commit
4f70dda369
1 changed files with 6 additions and 4 deletions
|
@ -717,14 +717,16 @@ FILES is a list of (SOURCE . DEST) relative filepath pairs."
|
|||
(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))
|
||||
(default-directory package-build-working-dir)
|
||||
(start-time (current-time)))
|
||||
(start-time (current-time))
|
||||
(old-archive-entry (assq name (package-build-archive-alist))))
|
||||
|
||||
;; right before we create a new package, clean out the old one
|
||||
(when old-archive-entry (pb/remove-archive old-archive-entry))
|
||||
|
||||
(cond
|
||||
((not version)
|
||||
(message "Unable to check out repository for %s" name))
|
||||
|
|
Loading…
Reference in a new issue