From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AGotOyZ2AmJGaAEAgWs5BA (envelope-from ) for ; Tue, 08 Feb 2022 14:54:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OHLNNyZ2AmJqagEAauVa8A (envelope-from ) for ; Tue, 08 Feb 2022 14:54:46 +0100 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 D367014323 for ; Tue, 8 Feb 2022 14:54:45 +0100 (CET) Received: from localhost ([::1]:42746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHQxA-0004PR-Lm for larch@yhetil.org; Tue, 08 Feb 2022 08:54:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHPdG-0000tI-44 for guix-patches@gnu.org; Tue, 08 Feb 2022 07:30:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHPdD-0002j3-Os for guix-patches@gnu.org; Tue, 08 Feb 2022 07:30:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHPdD-00080b-Kc for guix-patches@gnu.org; Tue, 08 Feb 2022 07:30:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53818] [PATCH v2 5/7] import: Add 'repology' updater. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 08 Feb 2022 12:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53818 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos , 53818@debbugs.gnu.org Received: via spool by 53818-submit@debbugs.gnu.org id=B53818.164432337930675 (code B ref 53818); Tue, 08 Feb 2022 12:30:03 +0000 Received: (at 53818) by debbugs.gnu.org; 8 Feb 2022 12:29:39 +0000 Received: from localhost ([127.0.0.1]:45740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHPcp-0007yh-8M for submit@debbugs.gnu.org; Tue, 08 Feb 2022 07:29:39 -0500 Received: from h178-251-242-94.cust.a3fiber.se ([178.251.242.94]:58496 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHPcm-0007yO-GG for 53818@debbugs.gnu.org; Tue, 08 Feb 2022 07:29:37 -0500 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yoctocell.xyz; s=mail; t=1644323367; bh=PsFSIAyQWih8KNCJ951KnLim3y2NYrmGEBp1HGzGe+k=; h=From:To:Subject:In-Reply-To:References:Date; b=mnEr8OcEE0d1XcCezvk6DKBKZAP/NWi881BYvPNVDURnhnhQAuxGFD/FTtB9S/eCG vUv/nyLpLJQUZy2hFW7a/mzEwiw8SZpIZyM8IECaCPLhjkRpK0MHq5Eayh7XSecsDM WOzc2qaPG4OOg6KCeQvMYFnf+O5gOEZJyo+Ga3Kk= In-Reply-To: <76a550f4fc82de9491b99786e8086d9d9d8c4c72.camel@telenet.be> References: <98726379214702d0745f56d9f946e792e803d326.1644224421.git.public@yoctocell.xyz> <76a550f4fc82de9491b99786e8086d9d9d8c4c72.camel@telenet.be> Date: Tue, 08 Feb 2022 13:29:26 +0100 Message-ID: <87a6f1zgm1.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644328486; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=PsFSIAyQWih8KNCJ951KnLim3y2NYrmGEBp1HGzGe+k=; b=sbwEJsyJ1v0B1+B487Rbz783gpQOfnvc8jSG0Mo7cavcYYPJPVycq7QodR8i3HyIGK44Sd jKZnbuJ5TUpkLSWqfJqnRpJ558YQS7mtacAsPaGgCZl273mtsn/Z78nAFQ4Ski69Xtvfm7 swfWr5Kcon6OMg+vvld8KkYYQ7ff4uzwnnrjtbXFGoIsbI4bZz5NbJp1JrxgjcmwuYk5oJ oVyDlpDpmwgcSG3BGmAKodAzhvHPdJMGYEs1m9t0McXdlpiWbfr082L3Mj/W+rmOKaWJaq fpjygIiwLTyROLEQQgFcVfSoLlg/JhUbQtiuIbUJhSabD1vGBXe3ATKHuV1qCg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644328486; a=rsa-sha256; cv=none; b=jV8B5DvbDI8Vfezr4W3uTt04gtDbf0fzK1pEsUKMCgSPoOfFchxf0ovYssVbc1ZRnIjPex LNAMEEI/pPNskhZVQ235hEJ5G7MGgufg1XM9tAcq3unRr54KQV9imZnsT6J2ji+5bdff9F kiiVza1P2GoNi1SiA2SGZZzYzVajzS43EoyRoD7d4QZ42OJisq6HNXz4ijcryI3EuUTvNg mkenmh2ElZ1aPlQ7EJBt9DV5lGEZNjLSOdQ1Zou0xNMI7lZB+jQxq0srvDTzQ83+7VKJOT ielRhuPosokbF/0AgbzlOIhoeZWrY8IuJyXEqvHx/higHUIZRpnonImmtOOD7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=mnEr8OcE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.13 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=mnEr8OcE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D367014323 X-Spam-Score: -4.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: tVcra4kkO3mE --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Maxime schrieb am Montag der 07. Februar 2022 um 10:50 +01: > Xinglu Chen schreef op ma 07-02-2022 om 10:07 [+0100]: >> +(define (latest-release package) >> +=C2=A0 (mock ((guix import json) json-fetch >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lambda* (url #:key ca= ched?) >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (json-stri= ng->scm %test-json))) >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (repology-latest-release pac= kage))) > > It would be nice to verify the URL. What do you mean with =E2=80=9Cverify=E2=80=9D? > FWIW, there's a 'with-http-server' macro. > although it might need to be extended a little, see e.g. > . > > Also, you are using 'memoize' in repology-fetch-info, > so the memoisation cache needs to be invalidated > (see e.g. tests/minetest.scm), or not, depending > on how 'repology-fetch-info' is used and tests are written. Good catch! Invalidating the cache would be a good idea. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmICYiYVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5mDQQAKTnfhCvES45yP/a0QdlvLBo2EgW J8ZAlGqEBlMzkYAlaxkH+xiP0gg7aalzMnarNU1KCAUTovZsk6bYhau+nk8mEQ88 QcyjftLBWLWLKaEvucavQ1M8aGoiuQnVDiRs6hJhlLok3EUau+UEdxCT7clsCBG6 tmwyfcGzKuM1UHrq1cAQ2fr1hMkSBW15WN5ksPXG3ug3M2PJBFgHxqFVEzXCZ9QG JgT0sE4rTSrFASQpEaUKDBLsII3DYiXgF5ntra8+/B+OrCHoSvwYl6lxBITKq/RV BXmM1Hrqv6Grjq2mLBb8csU72KpjWoId9WHxqqYwEDmgbQea1/r9A7BUBBfmf2Bo GIW08cdlutc8hW0bua/UNJbxLEGrhU9Xy/3M6f56/LAXQivdegPSEu3G7rsRzyMw yFZBp5fmw0oBHnMh6Dmf752Jm5H1VGN5phEjl/PMvsjXoCkyw7Fo6w4CPcCGZMIs jTSK2nnARTCRfVSzsyNfZq6Ev0+lp9GLiStA+GSOeuxc5+ZhrydaexE71plM86Nv ykaN1gBCXpVNlPG5VOwPJcA1UnYtDToyoi67iaOh6KaZJX/VVTwhbCxQovezGd+A zHmuhcMKvYTRqAZYiIW7pa4KGaKHsteU/weBtJieSs8QHMBwA5XHBvuFb9T888kk eGr7o1or6xz8c3rc =koqK -----END PGP SIGNATURE----- --=-=-=--