From 2ba2017e768d5ec1b271945f31fc5f728e2cf661 Mon Sep 17 00:00:00 2001 From: Donald Curtis Date: Wed, 18 Apr 2012 09:37:09 -0500 Subject: [PATCH] Print missing packages on error. Incorporated suggested changes in #72 --- melpa | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/melpa b/melpa index cd46e3fd..173f89f8 100755 --- a/melpa +++ b/melpa @@ -36,6 +36,17 @@ function melpa_validate { NUMBUILT=$(trim `ls packages/*.{el,tar} | wc -l`) echo "${NUMBUILT}/${NUMPACKAGES} packages built" + + if [[ $NUMBUILT -ne $NUMPACKAGES ]]; then + echo + echo "Missing Packages" + echo "______________________" + emacs --script missing.el + exit 1 + else + exit 0 + fi + } function print_usage {