summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/package.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp/package.el')
-rw-r--r--lisp/emacs-lisp/package.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 068b94360d4..9ff761f0157 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -4814,6 +4814,10 @@ find FILE."
;; byte-compile-warnings: (not make-local)
;; End:
"))
+ (with-demoted-errors "%S"
+ ;; The `.elc' file is now stale. Remove it so it doesn't affect
+ ;; its own compilation or lingers in case of compilation failure.
+ (delete-file (concat package-quickstart-file "c")))
;; FIXME: Do it asynchronously in an Emacs subprocess, and
;; don't show the byte-compiler warnings.
(byte-compile-file package-quickstart-file)))