From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wM8cDWo62V8CTgAA0tVLHw (envelope-from ) for ; Tue, 15 Dec 2020 22:36:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MKPsCGo62V+QeQAA1q6Kng (envelope-from ) for ; Tue, 15 Dec 2020 22:36:26 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 95B1B940367 for ; Tue, 15 Dec 2020 22:36:25 +0000 (UTC) Received: from localhost ([::1]:51890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpIvg-0003fP-FG for larch@yhetil.org; Tue, 15 Dec 2020 17:36:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpIvK-0003Wj-LP for guix-patches@gnu.org; Tue, 15 Dec 2020 17:36:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47876) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpIvK-0005bZ-Bc for guix-patches@gnu.org; Tue, 15 Dec 2020 17:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kpIvK-0002vx-91 for guix-patches@gnu.org; Tue, 15 Dec 2020 17:36:02 -0500 Subject: bug#39430: Use =?UTF-8?Q?CRAN=E2=80=99s?= canonical URL as home-page Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Tue, 15 Dec 2020 22:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 39430 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Christopher Baines Mail-Followup-To: 39430@debbugs.gnu.org, mail@cbaines.net, ldb@leibniz-psychology.org Received: via spool by 39430-done@debbugs.gnu.org id=D39430.160807173511233 (code D ref 39430); Tue, 15 Dec 2020 22:36:02 +0000 Received: (at 39430-done) by debbugs.gnu.org; 15 Dec 2020 22:35:35 +0000 Received: from localhost ([127.0.0.1]:59420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpIut-0002v6-2T for submit@debbugs.gnu.org; Tue, 15 Dec 2020 17:35:35 -0500 Received: from mira.cbaines.net ([212.71.252.8]:49222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpIur-0002ux-Qi for 39430-done@debbugs.gnu.org; Tue, 15 Dec 2020 17:35:34 -0500 Received: from localhost (188.30.130.172.threembb.co.uk [188.30.130.172]) by mira.cbaines.net (Postfix) with ESMTPSA id CF90727BC04; Tue, 15 Dec 2020 22:35:32 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 09646033; Tue, 15 Dec 2020 22:35:30 +0000 (UTC) References: <20200205074933.GH2917@zpidnp36> <87blex4zhk.fsf@cbaines.net> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Baines In-reply-to: <87blex4zhk.fsf@cbaines.net> Date: Tue, 15 Dec 2020 22:35:29 +0000 Message-ID: <87lfdy3dfy.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 39430-done@debbugs.gnu.org Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.41 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 95B1B940367 X-Spam-Score: -4.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: ct9KWXzr7l4/ --=-=-= Content-Type: text/plain Christopher Baines writes: > Lars-Dominik Braun writes: > >> I noticed for packages not specifying any URL the CRAN importer emits home-page >> URLs like https://cran.r-project.org/web/packages/ (without trailing >> slash). These are permanent redirects, thus the linter complains about them. >> One option would be adding a trailing slash or use the canonical URL, as >> provided by CRAN (on the bottom of the description page). The attached patch >> does the latter. > > Hi, > > Sorry for the delay in following up on this. > > I gave this patch a try, testing using gProfileR as just a random > package I picked. > > So, my take on this is that the canonical URLs still redirect, but using > a 303 redirect, which the linter doesn't complain about. Given I see [1] > on the page, I guess it makes sense to use these URLs. > > 1: Please use the canonical form https://CRAN.R-project.org/package=gProfileR to link to this page. > > I'll leave it a day or two for others to comment, as I'm not > particularly familiar with CRAN, but I'm happy to merge this. I've gone ahead and pushed this as f14bb29defb36051039e977ba3791b542d90578a. I tweaked one of the variable names. Thanks again, Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl/ZOjJfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xc2FhAAkfZyI6lM2lfjt2zON4szN7/dmC/sW9kl J8GXkHvfCyWVLYCpUh/v5Z3FfJas6yLXsVSek+DideyxeQ49GEevesgiVF6h0Azj SZ6Vf0/izZznDFTEO5CbC8nzk176HLiqapDmpmKa5stLpj6OPVnaV4AT7/z13Mbt fAJPc9UNiY52l6dHZMSt4mnlIW0I05gVeRkZpO/mGYnQcAcigH/rmnaZh624SWq2 iRspwKz7iMm3ZqwjyFhk3+EO+OeLxSXTjP+ak7PUQyGp6mCIParm2UDdse0Qlxp4 qqiHXwH/vPegd5moln5qsbpoZEYXgP0OIPO/QYX9Ha+0eTjzHJ+8m8mtWeIbFZgo V/uWYqtsAwuhnBfL54DAUMrVrz5F5KO2/aTtIPW+xq6XAN197uEnYVPN6Jmak5TE c8etbpVrz1Y6Uep8I/ummLF5ruFhj7nUJV7bQOkUnpnhzUjNzLHV6ory+SRvit6v 0r2OQVRb4t9u/oSrA+/wM3Fac50rGJ0NZfxwPq90WtJpxeW99kQr5/tqOZcDikU4 nTsrkG4Na9wci45l6p/vIBfgzM5JcCbl4sud5ITLkyOQdidLOFOw02p4z5O56tQS A8w1FMgN/01lGYsZin2szHEzCGrhgZRhdr/muk2jWb1XkaIK6hG+LL0RDnys2ViM +p/xQ1Kml9Q= =EONz -----END PGP SIGNATURE----- --=-=-=--