From patchwork Wed Feb 9 13:22:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 614 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 51EB027BBEA; Wed, 9 Feb 2022 13:37:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1AE8927BBE9 for ; Wed, 9 Feb 2022 13:37:29 +0000 (GMT) Received: from localhost ([::1]:50418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHnA0-0004d3-5q for patchwork@mira.cbaines.net; Wed, 09 Feb 2022 08:37:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHmw3-0003DS-OW for guix-patches@gnu.org; Wed, 09 Feb 2022 08:23:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56261) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHmw3-00044U-BP for guix-patches@gnu.org; Wed, 09 Feb 2022 08:23:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHmw2-00071o-6m; Wed, 09 Feb 2022 08:23:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53818] [PATCH v3 0/7] Add Repology updater Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: maximedevos@telenet.be, guix-patches@gnu.org Resent-Date: Wed, 09 Feb 2022 13:23: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: 53818@debbugs.gnu.org Cc: Maxime Devos X-Debbugs-Original-Xcc: Maxime Devos Received: via spool by 53818-submit@debbugs.gnu.org id=B53818.164441295826967 (code B ref 53818); Wed, 09 Feb 2022 13:23:02 +0000 Received: (at 53818) by debbugs.gnu.org; 9 Feb 2022 13:22:38 +0000 Received: from localhost ([127.0.0.1]:50157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHmve-00070t-JI for submit@debbugs.gnu.org; Wed, 09 Feb 2022 08:22:38 -0500 Received: from h178-251-242-94.cust.a3fiber.se ([178.251.242.94]:44788 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHmvb-00070d-QN for 53818@debbugs.gnu.org; Wed, 09 Feb 2022 08:22:36 -0500 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yoctocell.xyz; s=mail; t=1644412948; bh=2yrC3cnltYaYC4LJFDhbSbQojHlJrdoDxfos1KOYDr8=; h=From:To:Subject:In-Reply-To:References:Date; b=GZScCNtmGgJL3uejcZIQzAvPqIoHrA1rtOLPlOj5Ptlxp19cDR2FD85wflID0hSFW I9poQHdvt/eu1TLPhU7UVQ1UXKM6kUlthTCS5v+1fmdgFr1jQAFEA9JI71tSUDS3B2 ZDDyGb4iZNY9jvYddM8YxVJ0vXYwV3rWz9N7F0tc= In-Reply-To: References: Message-Id: Date: Wed, 09 Feb 2022 14:22:27 +0100 MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Changes since v2: * Change ‘#:cached?’ argument to ‘#:http-fetch’. * Invalidate cache in tests and make sure the requested URL is the one we expect. * Expound a bit on the documentation in the manual. * Some more rules for guessing the Repology name of a package. Xinglu Chen (7): upstream: Sort list of updaters. http-client: Make 'http-fetch/cached' take '#:headers' argument. http-client: 'http-fetch/cached' accepts a string or a . import: json: Make 'json-fetch' take '#:http-fetch' argument. import: Add 'repology' updater. gnu: xorg-server-xwayland: Set 'repology-name' property. gnu: xorg-server-xwayland: Prepare for cross-compilation. Makefile.am | 3 + doc/guix.texi | 8 ++ gnu/packages/xorg.scm | 8 +- guix/http-client.scm | 18 ++- guix/import/json.scm | 9 +- guix/import/repology.scm | 249 ++++++++++++++++++++++++++++++++++++++ guix/upstream.scm | 29 ++++- tests/import-repology.scm | 150 +++++++++++++++++++++++ 8 files changed, 457 insertions(+), 17 deletions(-) create mode 100644 guix/import/repology.scm create mode 100644 tests/import-repology.scm base-commit: ad9cd004c81a01e33a605221a102f4d20abe442d