emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master b86569f130: Make package-archives URL treatment slighty laxer


From: Robert Pluim
Subject: master b86569f130: Make package-archives URL treatment slighty laxer
Date: Mon, 25 Jul 2022 09:37:11 -0400 (EDT)

branch: master
commit b86569f1302a48d4c402d0cffad75679989f2236
Author: Robert Pluim <rpluim@gmail.com>
Commit: Robert Pluim <rpluim@gmail.com>

    Make package-archives URL treatment slighty laxer
    
    'package-archives' URLs are expected to end in '/', but we can
    cater for people typoing that by using 'url-expand-file-name'.
    
    * lisp/emacs-lisp/package.el (package--with-response-buffer-1): Use
    'url-expand-file-name' instead of 'concat'.
---
 lisp/emacs-lisp/package.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 5ea0c819e9..b25865f429 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1325,7 +1325,7 @@ errors signaled by ERROR-FORM or by BODY).
 
 (cl-defun package--with-response-buffer-1 (url body &key async file 
error-function noerror &allow-other-keys)
   (if (string-match-p "\\`https?:" url)
-        (let ((url (concat url file)))
+        (let ((url (url-expand-file-name file url)))
           (if async
               (package--unless-error #'ignore
                 (url-retrieve



reply via email to

[Prev in Thread] Current Thread [Next in Thread]