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)))))
(package-build-archive pkg-name)
(package-build-dump-archive-contents)
(save-current-buffer
(switch-to-buffer-other-window
(find-file-noselect
(expand-file-name "archive-contents" package-build-archive-dir) t))
(revert-buffer t t))
(with-output-to-temp-buffer "*package-build-result*"
(pp (assoc pkg-name (package-build-archive-alist))))
(when (yes-or-no-p "Install new package? ")
(package-install-file (pb/find-package-file pkg-name)))))