From patchwork Mon Feb 7 09:06:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 607 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 7D6B527BBEA; Mon, 7 Feb 2022 09:51:09 +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 47E7427BBE9 for ; Mon, 7 Feb 2022 09:51:09 +0000 (GMT) Received: from localhost ([::1]:58594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nH0fs-0004tL-9w for patchwork@mira.cbaines.net; Mon, 07 Feb 2022 04:51:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGzzM-0005kK-NE for guix-patches@gnu.org; Mon, 07 Feb 2022 04:07:14 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47018) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGzzC-0004FE-Pi for guix-patches@gnu.org; Mon, 07 Feb 2022 04:07:11 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGzzB-0002ru-Ps; Mon, 07 Feb 2022 04:07:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53818] [PATCH v2 0/7] Add Repology updater Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: maximedevos@telenet.be, guix-patches@gnu.org Resent-Date: Mon, 07 Feb 2022 09:07:01 +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.164422478210964 (code B ref 53818); Mon, 07 Feb 2022 09:07:01 +0000 Received: (at 53818) by debbugs.gnu.org; 7 Feb 2022 09:06:22 +0000 Received: from localhost ([127.0.0.1]:40909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGzyY-0002qk-EK for submit@debbugs.gnu.org; Mon, 07 Feb 2022 04:06:22 -0500 Received: from h178-251-242-94.cust.a3fiber.se ([178.251.242.94]:55232 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGzyU-0002qP-Af for 53818@debbugs.gnu.org; Mon, 07 Feb 2022 04:06:21 -0500 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yoctocell.xyz; s=mail; t=1644224770; bh=fuWQb7OJwOb7C+dLOr25H2QGE97cRZvlJ87BD1gUlr8=; h=From:To:Subject:In-Reply-To:References:Date; b=WfGUmBN1Cmb8XZ3rX/fXooaTPaueJ3oI+y/BvF8EE+DB20wei0HoVmHKB/BpApHR+ 0Ttvsb4ccXgnWGUBYK7BHuoYzFFhWEhYKAjQqAcQBGd4MxvwCooxHAXSFuAc4uz7ja JG/3xQNBjBDmcJQPibY6H8F3c/+8iSMqi+elj5qc= In-Reply-To: References: Message-Id: Date: Mon, 07 Feb 2022 10:06:09 +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 Hi, The following changes have been made since v1: * Sort the list of updaters to make generic ones come last. * Make ‘json-fetch’ use ‘http-fetch/cached’ if the #:cached? argument is #t. * Added some additional rules for converting Guix package names to Repology package names. * Some typo fixes and more docstrings. 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 '#:cached?' 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 | 7 ++ gnu/packages/xorg.scm | 8 +- guix/http-client.scm | 18 ++- guix/import/json.scm | 14 ++- guix/import/repology.scm | 235 ++++++++++++++++++++++++++++++++++++++ guix/upstream.scm | 29 ++++- tests/import-repology.scm | 145 +++++++++++++++++++++++ 8 files changed, 441 insertions(+), 18 deletions(-) create mode 100644 guix/import/repology.scm create mode 100644 tests/import-repology.scm base-commit: 7c9ad54b0616112c7eea6dd02379616aef206490