From ead07037468e9d95f6beb2d0c7b12801a2d2eaa9 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Tue, 24 Apr 2012 20:07:44 +0100 Subject: [PATCH] Report an error when elisp on EmacsWiki gets deleted upstream (as happened with rainbow-delimiters.el) --- package-build.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package-build.el b/package-build.el index e2efc70d..a44a1c9c 100644 --- a/package-build.el +++ b/package-build.el @@ -155,6 +155,8 @@ rate limiting." (format "http://www.emacswiki.org/emacs/%s" filename))) (pb/with-wiki-rate-limit (url-copy-file download-url filename t)) + (when (zerop (nth 7 (file-attributes filename))) + (error "Wiki file %s was empty - has it been removed?" filename)) (with-current-buffer (pb/with-wiki-rate-limit (url-retrieve-synchronously wiki-url)) (message (format "%s\n" download-url))