version of package-build-archives that ignores errors so that other

packages will complete even if one doesn't.

right now if an error occurs, the build-all will stop, but in most
cases build-all should continue through the rest.
This commit is contained in:
Donald Curtis 2012-03-17 12:39:44 -05:00
parent dfb7f76a3e
commit a6e79d651b

View file

@ -359,10 +359,15 @@ If PKG-INFO is nil, an empty one is created."
(interactive)
(mapc 'package-build-archive pkgs))
(defun package-build-archives-ignore-errors (&rest pkgs)
"Build archives for packages PKGS. Ignore errors."
(interactive)
(mapc (lambda (pkg) (ignore-errors (package-build-archive pkg))) pkgs))
(defun package-build-all ()
"Build all packages in the `package-build-alist'."
(interactive)
(apply 'package-build-archives
(apply 'package-build-archives-ignore-errors
(mapcar 'symbol-name (mapcar 'car package-build-alist))))
(defun package-build-initialize ()