>From 1a4774a458deb881a767a5dfd2e17377aa6bd008 Mon Sep 17 00:00:00 2001 From: dickmao Date: Fri, 30 Jul 2021 21:04:46 -0400 Subject: [PATCH] Package archive location needs to be absolute filename * lisp/emacs-lisp/package.el (package--with-response-buffer-1): Give the pre-existing error some bite (it was masked previously by misplacement). --- lisp/emacs-lisp/package.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index f1daa8d124..dfda201af6 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1366,10 +1366,10 @@ package--with-response-buffer-1 (kill-buffer buffer) (goto-char (point-min)))))) (package--unless-error body + (unless (file-name-absolute-p url) + (error "Location %s is not a url nor an absolute file name" + url)) (let ((url (expand-file-name file url))) - (unless (file-name-absolute-p url) - (error "Location %s is not a url nor an absolute file name" - url)) (insert-file-contents-literally url))))) (define-error 'bad-signature "Failed to verify signature") -- 2.26.2