Re-apply "Neater display of build results" commit (lost in fasterbuild merge?)

This commit is contained in:
Steve Purcell 2013-11-13 20:12:14 +00:00
parent 1d2ce20882
commit b564228de0

View file

@ -956,11 +956,8 @@ Returns the archive entry for the package."
(let ((pkg-name (intern (file-name-nondirectory (buffer-file-name))))) (let ((pkg-name (intern (file-name-nondirectory (buffer-file-name)))))
(package-build-archive pkg-name) (package-build-archive pkg-name)
(package-build-dump-archive-contents) (package-build-dump-archive-contents)
(save-current-buffer (with-output-to-temp-buffer "*package-build-result*"
(switch-to-buffer-other-window (pp (assoc pkg-name (package-build-archive-alist))))
(find-file-noselect
(expand-file-name "archive-contents" package-build-archive-dir) t))
(revert-buffer t t))
(when (yes-or-no-p "Install new package? ") (when (yes-or-no-p "Install new package? ")
(package-install-file (pb/find-package-file pkg-name))))) (package-install-file (pb/find-package-file pkg-name)))))