From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 aBAOBlTD/2GG/gAAgWs5BA (envelope-from ) for ; Sun, 06 Feb 2022 13:47:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CA1lOlPD/2EH2wAAG6o9tA (envelope-from ) for ; Sun, 06 Feb 2022 13:47:15 +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 D552216AFE for ; Sun, 6 Feb 2022 13:47:14 +0100 (CET) Received: from localhost ([::1]:44954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGgwj-0003Sf-DI for larch@yhetil.org; Sun, 06 Feb 2022 07:47:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGgrq-0003QD-JS for guix-patches@gnu.org; Sun, 06 Feb 2022 07:42:11 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42804) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGgrh-00059g-V2 for guix-patches@gnu.org; Sun, 06 Feb 2022 07:42:09 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGgrh-0006KD-Pb for guix-patches@gnu.org; Sun, 06 Feb 2022 07:42:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53818] [PATCH 0/3] Add Repology updater Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Feb 2022 12:42: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: Xinglu Chen , 53818@debbugs.gnu.org Received: via spool by 53818-submit@debbugs.gnu.org id=B53818.164415130124282 (code B ref 53818); Sun, 06 Feb 2022 12:42:01 +0000 Received: (at 53818) by debbugs.gnu.org; 6 Feb 2022 12:41:41 +0000 Received: from localhost ([127.0.0.1]:36701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGgrN-0006Ja-9c for submit@debbugs.gnu.org; Sun, 06 Feb 2022 07:41:41 -0500 Received: from xavier.telenet-ops.be ([195.130.132.52]:42388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGgrK-0006JQ-O4 for 53818@debbugs.gnu.org; Sun, 06 Feb 2022 07:41:40 -0500 Received: from [172.20.10.5] ([188.188.251.13]) by xavier.telenet-ops.be with bizsmtp id roha2600A0J677g01ohaU5; Sun, 06 Feb 2022 13:41:36 +0100 Message-ID: <2ba4a342b6c2b53f7038a84c8337608e51ecf13a.camel@telenet.be> From: Maxime Devos Date: Sun, 06 Feb 2022 13:41:29 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-ZnSI7cgLiqP4k3lNx9jj" 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=1644151297; bh=IjZJqjHDO4WJ2bephfwIeyaqBhzu03RG41jb/obWCk0=; h=Subject:From:To:Date:In-Reply-To:References; b=Uyxo9O41q2fTCo7JZnYFB7cCcqotHC2zT2/HDy/oCZRxbzfvD5XGiS67g3ktoPrkQ 1/V7r9dlZ7nPR8D/5Z4mi5WqrOdMEcTN9mDRhmX20CqK1yBl9serumW15/SYcDctLt S1abPChEvByo7RwY1LDIc21qXNRwFq1P6omrf2vSjhU6YkhtFRmZ28X+qhuWTkxBn9 bBtwT4nLsxxybyzat9PwtSOwWpCV52AeM+rsB4/K0gaRnBCtNo3DciLllaDzlhqcb5 +2IwM/bU1X0wwP3UdK/Vtpv/WrFkdhrJg+1Y169QvdhD2LriDH5yJt09eKE34TZCJD voclWl7la5fXA== 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=1644151634; 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=IjZJqjHDO4WJ2bephfwIeyaqBhzu03RG41jb/obWCk0=; b=dkF/q751yZouU4mJRF6oob/U89QLOxLN+B12CAGroDtI3G+P6PsFT//bnIiJJAT6X5hIC/ FcBXBlNORK4kuFM6+CoHt65OoIjD1/QOJh7aVgwWHasSrrDmeiuEXP7SNs5yuFej+aRRbR 82pWPRp3SfpKZpJGHalMloFccAA+ZVxc9GAY27lr6E8H+0d+sUj6qJvzWf2o1uFUbbMn2P jV5Z2inuKBy0qUgP1k535FenAbGMpvx8sJGuqMaD83Mkx1sBBxIVlf/pPsG4KM/imB4ILO KLR4gdkM466sRtypdL0Ex9/y9hibqEQGvaALqGgnZ/6Ra0kKRs2WC5Zdg48kog== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644151634; a=rsa-sha256; cv=none; b=uf/hj3z1ERfhMs5RXxM8Knq+mPjIsnczbx/UOUzAfHcD2k7EvFc8/qTWQw3ACww94D9buU EWS4kepNTaELakI9ILSsUU8GaT/DGTS/faO5YiqN1Gty2H21a7vET9MXiJngt19jvm1Lkm XEAoQNPlywuYOPFxao4ZSfabYhjJr5ves3UancGDW7O3ARqRB9MYK/PFpO+sVWOFbSf7Dk JEsnflOfGpfVNrDtcAvq1RBREQm/OhU/6FZ3EkJyO2AOakCG5Q7bQ8FrErE68DhV+wl4ou oAFihq/GP6qAaZyRmh1m00H2JL+LeFuIgLo17TmnX2hbP+V1XBzq3wG13FElNw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Uyxo9O41; 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: -5.13 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Uyxo9O41; 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: D552216AFE X-Spam-Score: -5.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: CHFD3BfTzwaP --=-ZnSI7cgLiqP4k3lNx9jj Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xinglu Chen schreef op zo 06-02-2022 om 12:50 [+0100]: > Because of the way =E2=80=98%updaters=E2=80=99 in (guix upstream) works, = the Repology > updater is the first or second updater that is used (since it > technically works on ever package), but because of the limitations I > mentioned above, the result might not always be the best. The Repology > updater is mostly useful for things that don=E2=80=99t already have an up= dater, > e.g., =E2=80=98maven-dependency-tree=E2=80=99. Would it make sense to ha= rd-code the > =E2=80=98%updaters=E2=80=99 variable and put the Repology last in the lis= t? I would prefer not to hardcode %updaters and keep the current discovery mechanism, such that people can experiment with updaters outside a git checkout of guix and in channels. FWIW it would be useful to have the same mechanism for importers. However, it might be a good idea to do some _postprocessing_ on the discovered list of updaters, e.g. they could be sorted on 'genericity' with 'stable-sort' (*): (define (genericity x) (cond ((it is "generic-SOMETHING") 1) ((it is repology) 2) (#true 0))) (define (less x y) (<=3D (genericity x) (genericity y))) (*) stable-sort and not sort, to preserve alphabetical ordering for updaters with the same genericity. Greetings, Maxime. --=-ZnSI7cgLiqP4k3lNx9jj 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+4iGRcl7gUCYf/B+RccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7kwHAP9vamvhIFQUUY9qfgv6X4JT6xjq QHRdA+w51aw/A0R+SwD9GE/Mpw/22XbZ3y7WwR4mGcSIerIloYFGo/YFrpQORw4= =4GIv -----END PGP SIGNATURE----- --=-ZnSI7cgLiqP4k3lNx9jj--