From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: package-archives terminating slash Date: Wed, 09 Feb 2022 16:42:44 +0100 Message-ID: <87y22k2gi3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40409"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 09 17:58:15 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nHqIJ-000AHi-AX for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Feb 2022 17:58:15 +0100 Original-Received: from localhost ([::1]:52690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHqII-00047M-Dt for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Feb 2022 11:58:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHp7K-0001xi-D4 for emacs-devel@gnu.org; Wed, 09 Feb 2022 10:42:50 -0500 Original-Received: from [2a00:1450:4864:20::32a] (port=42814 helo=mail-wm1-x32a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHp7I-0001iA-7y for emacs-devel@gnu.org; Wed, 09 Feb 2022 10:42:50 -0500 Original-Received: by mail-wm1-x32a.google.com with SMTP id k3-20020a1ca103000000b0037bdea84f9cso1910499wme.1 for ; Wed, 09 Feb 2022 07:42:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:gmane-reply-to-list:date:message-id:mime-version :content-transfer-encoding; bh=X8rKApjQsFLfk8Lv/U6hzQ6pIhmFLogeQ/JqqKTfwOM=; b=KSuK8WM1hSUgrj4wYvy3esYW6dkjqaGjTWc/DxZJ+IolTQjipxWB6jQhFAoajy8off lef/7w2CcuuJ8h+pAWwwkY7lyMvsLZXu8P50vO+AcIjZAswDBg2oU8N28O1u5+1t6B3U lr5FWYZ9PrmzCOQgUaYE+Jv+bC8406+234KsQn7ejGStrsQa0aEyTp0f1CSeSSxAAHom alxKO81afygRgnx2dzSjmxTCMvXOVB0Fo1ZLEaRRNhGcca8ee4kdyHtQ6HiDVEtO3rJM Pnb1851BmrLWjGcmA2e2KL1t6iDNYps7eNMMp4FPI37zZUKJzqrsYgRU6zF4byoe4hFN AHlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:gmane-reply-to-list:date :message-id:mime-version:content-transfer-encoding; bh=X8rKApjQsFLfk8Lv/U6hzQ6pIhmFLogeQ/JqqKTfwOM=; b=nGycdHKs/ZO4ZzbU/N9R5uKA9F8ckoD7/cTNCH2lq9sTclbVV8G4XPzIlVhgrNLxfS eCz2JettrBXX1lU90XamOOv7KscB8cSAnu5YhZYs3qIaB61PaurPApIdsyrAwdx67jZd W2z8NNWSsYHuhflOEgAg1eiGgyft5ndXnhGTJR4J3wCsfHkQr+lXnZ9sb5LEU5MgL8W+ b0RKf6Pjqu9GvQEG3dz33ojkDvuv0Pa3jtg/WsvKWxkW+ikYoePf6venoqopqBds6MC8 Z1jNuZxINcT74PRIUsHjWC0JwN5z49YRmbw3OZnBwAzb+BrM8Pu7wfcxCIDqx1rL02hd c3kQ== X-Gm-Message-State: AOAM5328BqVrDr5r7M5PXi0Dc8wFpQe8CqzGjkD2oR/UocN76s0Lo1BX 0pH/NvGTeZh/X4P4ixBE8AacEN1PdAw= X-Google-Smtp-Source: ABdhPJzaC2Bd6FYPPWQpQh/golp+hsEC16Qcp86b6wQwozWhQHKDUW66e0sOxzxaTmblCrAa9cHbUw== X-Received: by 2002:a05:600c:1d06:: with SMTP id l6mr3106077wms.80.1644421365984; Wed, 09 Feb 2022 07:42:45 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:2e30:b3b0:e6a6:c637]) by smtp.gmail.com with ESMTPSA id u14sm7277560wmq.41.2022.02.09.07.42.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 07:42:45 -0800 (PST) Gmane-Reply-To-List: yes X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32a (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286105 Archived-At: Hi, if I do M-: (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages"= )) M-x package-list-packages RET then the package list retrieval works, but I get the following in *Messages*, since I=CA=BCve forgotten the trailing '/' error in process filter: Error retrieving: https://melpa.org/packagesarchiv= e-contents (error http 404) We can (ab)use `file-name-concat' as follows, but is this too DWIM? diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 2e01449613..fdaab6f92d 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1307,7 +1307,7 @@ package--unless-error =20 (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 (file-name-concat url file))) (if async (package--unless-error #'ignore (url-retrieve