From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EKbPFXv1AGJUMAAAgWs5BA (envelope-from ) for ; Mon, 07 Feb 2022 11:33:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ELQyE3v1AGKSlwAA9RJhRA (envelope-from ) for ; Mon, 07 Feb 2022 11:33:31 +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 EFD6FC11E for ; Mon, 7 Feb 2022 11:33:30 +0100 (CET) Received: from localhost ([::1]:36990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nH1Ks-0007Qe-3k for larch@yhetil.org; Mon, 07 Feb 2022 05:33:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nH0fm-00055z-Vj for guix-patches@gnu.org; Mon, 07 Feb 2022 04:51:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47137) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nH0fm-0001nr-KY for guix-patches@gnu.org; Mon, 07 Feb 2022 04:51:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nH0fm-00044R-EB for guix-patches@gnu.org; Mon, 07 Feb 2022 04:51:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53818] [PATCH v2 5/7] import: Add 'repology' updater. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Feb 2022 09:51:02 +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: Xinglu Chen , 53818@debbugs.gnu.org Received: via spool by 53818-submit@debbugs.gnu.org id=B53818.164422742915600 (code B ref 53818); Mon, 07 Feb 2022 09:51:02 +0000 Received: (at 53818) by debbugs.gnu.org; 7 Feb 2022 09:50:29 +0000 Received: from localhost ([127.0.0.1]:41034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH0f0-00043G-N2 for submit@debbugs.gnu.org; Mon, 07 Feb 2022 04:50:29 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:55622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH0ez-000432-EI for 53818@debbugs.gnu.org; Mon, 07 Feb 2022 04:50:13 -0500 Received: from [172.20.10.9] ([213.119.168.30]) by michel.telenet-ops.be with bizsmtp id s9qB260040fhH05069qBNq; Mon, 07 Feb 2022 10:50:12 +0100 Message-ID: <76a550f4fc82de9491b99786e8086d9d9d8c4c72.camel@telenet.be> From: Maxime Devos Date: Mon, 07 Feb 2022 10:50:10 +0100 In-Reply-To: <98726379214702d0745f56d9f946e792e803d326.1644224421.git.public@yoctocell.xyz> References: <98726379214702d0745f56d9f946e792e803d326.1644224421.git.public@yoctocell.xyz> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-Z/PcsuxPhqf4O0UL9TO2" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1644227412; bh=Zt+HUVI1efZPLFHtjCgUuqW6HlbB6lch6zPxvxloLnE=; h=Subject:From:To:Date:In-Reply-To:References; b=lh0glPX0uKAA0zR9ly7SvgE6Q9qPtGUYW23BSHSxaZyXKPCVJoteP6LtT1I0KRZR6 Vf5q5Yxu6R45D1cSJgoq+bhkhPGJ77qI92NHyK4NwmW23q1a6XLiAKX171yAtTHMNk N9eyK8OsG5nFuarShXQyOEQX93ZpmmJPoQew9lR3pxNpymLXwzL2Gm0jIIWLeyis3b K2sftXEzZBTMepL0+RhggXpoAGjvryLoaheEsRfetvPJNZ6cbqKsq7iYZ3/Hh30R7W OSPRJV0/9+GchNv2jQkS6P2C17r1oNU+0dsjggGB9CgMHvt9AcidK4INcEKKvz9pb/ jkubEI2SK0ETQ== 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=1644230011; 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=Zt+HUVI1efZPLFHtjCgUuqW6HlbB6lch6zPxvxloLnE=; b=G6STVQsfhggNaNnckviPViZFTUmuVKhV2U/Lsiakv67/jtDx+oZNWeFEAzMMdMN9DAgtaC VFeqY2nVV1hWqBWnZ5xtxHY/Ok9U5HVTnkJvrTFEgT8sbHXX7qR05XAY63t2Mqi9Xy+ZfO bS6C72D16olze21Wmm4I1Wn8REUGu4v4Tg6o8FitCptQA3EkNHP4xJPtHEdGDswu1Mctvx wyQWDgT5FBc5XA6Kabqha3bfbgXfzpTRcvSvPeLE1x1Rq0vld7ddPF/B+/lfFeiKjIaUP4 w8S1wKPTrkYsp1qL6wQ7A9WbQZTPmjDRjqhbDzf9ldP7Bh59p/uYujcs9DSt9Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644230011; a=rsa-sha256; cv=none; b=kWPqsE1iiYZ5JMrVg0THqm0qdisNt8wOE3XOfIVkNFehfYplGgSBMhvlZ3ftXU0BjtygfR tIZYMX+dZ2pbZOvhiurpmMbx6A7SCnWh8kR9U7W/x27/XP77Kmqgb6NMmIq+h3miW4ChKT uA7H5fHzARG528fjoeiU3Sf9uRJgtt5Ew5Jqro/PtIildmEjzqIFh1oRSk83BJEsDP7N2r li23SDnAr6H8cIRlrsg726Vgj503H+jco0xWX/kAo2XtBfoNeky2HlG1nNIizN3p4JyZ7b eToCdnGSJbCskL7JKcgNm9zbzn/whIp/nZhbqUMhvdkViboj6zdqotsUU0yzzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=lh0glPX0; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=lh0glPX0; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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: EFD6FC11E X-Spam-Score: -4.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: blG7WYE3V3wr --=-Z/PcsuxPhqf4O0UL9TO2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 cac= hed?) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (json-strin= g->scm %test-json))) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (repology-latest-release pack= age))) It would be nice to verify the URL. 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. Greetings, Maxime. --=-Z/PcsuxPhqf4O0UL9TO2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYgDrUhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7mdIAP9XBEBiopGDccsznDNFN7/bhNKU 3jS5oGOO0h9qqUUcdgD9EkOUUU0iinGjNIX2MtSjvKwXaxAyx0xhTSCXMQVMjAc= =AVGv -----END PGP SIGNATURE----- --=-Z/PcsuxPhqf4O0UL9TO2--