From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 GD+ADwXn/2G8SQAAgWs5BA (envelope-from ) for ; Sun, 06 Feb 2022 16:19:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kJLvCwXn/2FvVgAAauVa8A (envelope-from ) for ; Sun, 06 Feb 2022 16:19:33 +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 8DD7517ED1 for ; Sun, 6 Feb 2022 16:19:32 +0100 (CET) Received: from localhost ([::1]:59636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGjK7-0004PY-MK for larch@yhetil.org; Sun, 06 Feb 2022 10:19:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGjJf-0004PF-1T for guix-patches@gnu.org; Sun, 06 Feb 2022 10:19:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGjJe-0003uM-OH for guix-patches@gnu.org; Sun, 06 Feb 2022 10:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGjJe-0002aW-GV for guix-patches@gnu.org; Sun, 06 Feb 2022 10:19:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53818] [PATCH 0/3] Add Repology updater Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Feb 2022 15:19: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: Maxime Devos , 53818@debbugs.gnu.org Received: via spool by 53818-submit@debbugs.gnu.org id=B53818.16441606839865 (code B ref 53818); Sun, 06 Feb 2022 15:19:02 +0000 Received: (at 53818) by debbugs.gnu.org; 6 Feb 2022 15:18:03 +0000 Received: from localhost ([127.0.0.1]:39534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGjIh-0002Z3-6f for submit@debbugs.gnu.org; Sun, 06 Feb 2022 10:18:03 -0500 Received: from h178-251-242-94.cust.a3fiber.se ([178.251.242.94]:34904 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGjIf-0002YR-Eo for 53818@debbugs.gnu.org; Sun, 06 Feb 2022 10:18:02 -0500 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yoctocell.xyz; s=mail; t=1644160673; bh=G6KSKS6HPjFwVRqKb+Eo8M1Gmol4R8HVGJTQdIUgoBU=; h=From:To:Subject:In-Reply-To:References:Date; b=hrcCncpJFKqD1M8Wy5r0piL5LNEcHZcQQNCGL9030t/xwheNCOHVgKQfrap/Y9sUK d1v9iIHmo/pvp2psK6YTPhPUGDwzTUTSDQU/mxMKWC1igWV96TNPr8hbVl6cALBZhn WJPMHZLw5gySwUetP3NAsI5vwriQhO1vEedNKOl4= In-Reply-To: <2ba4a342b6c2b53f7038a84c8337608e51ecf13a.camel@telenet.be> References: <2ba4a342b6c2b53f7038a84c8337608e51ecf13a.camel@telenet.be> Date: Sun, 06 Feb 2022 16:17:38 +0100 Message-ID: <878ruo2fe5.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=1644160773; 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=G6KSKS6HPjFwVRqKb+Eo8M1Gmol4R8HVGJTQdIUgoBU=; b=JegvFtSFHddk5jmDK8IDzOJWkEjhE+g67mCvwlcvs6AwnlTW+W8xtTN0oQua07MIbwKKwT O4vWl7cw7jqyY1/FLn05oV1cQ2dl+KRx7AY8iwmjTyWMnB+D9na/h/iy+e2nExXuGdx1yf 1cOiwjMDCcN084froZW/fDV1G6H6KBMIbe65GDQfjyDqHX5rM0OyvbYSGyZa4D5LCiU9ZE UByOR/LV6Z5YqJpt0skPr5Q8zPjBfDvHX8XfBqgAqQmPqbGiQwy8MlVqxvqSqgY404RzNd DazqsDRUojV4qzVsKsya5/j3yV35E2iem4XtdZvggft5KZ9pW43aSobepvGSug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644160773; a=rsa-sha256; cv=none; b=qH3TTno0q0I3gGdWgkNlSKkTt4qLUQLbuHysaxcX+ElHQSTix7ZP6bvPsmoOuMplCCSIZJ hleBgYLLuFTZtW258KyPIKnvtunBPTnixWjN39qFBOPtlsgbqXdje25sCPICihTfc5Po2u Ew1/WG9Ym9quEM7P+FFipfCUFPhe+sBH8/jiotFm9XQikuBI/LaPADZgt6paTBhFVafGmh PNvrCKUI/lFb6XvfCatchq+cRzHliJrMTajd93Ir3or/nfo7Cs4m9KTmNcBenKi6yS4+jU STWZu5k5audFYAzSqXGs72Zc1xAoSJCbyFNlEiS/8dll6C1Bj00Xd6sgDlZVHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=hrcCncpJ; 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=hrcCncpJ; 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: 8DD7517ED1 X-Spam-Score: -4.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: /x/IbqwwUe45 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Maxime schrieb am Sonntag der 06. Februar 2022 um 13:41 +01: > 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 u= pdater, >> e.g., =E2=80=98maven-dependency-tree=E2=80=99. Would it make sense to h= ard-code the >> =E2=80=98%updaters=E2=80=99 variable and put the Repology last in the li= st? > > 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. Good point. > 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. That looks like a good idea --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmH/5pIVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5zoEP/iTocn9Z57276DXaWFmwwa7uHczT L+SQbXM9hB0UHR1k2R+1/UOeZcxJMiVAxTcq63tigRpmdzf105Osl0qK+vyASox0 RTDS07T6tmunXNGyosIOXRbftpVhSLZPzFWGb2km1ZT0sawKHmGUjFcAl77cBtW4 PNsclQEm2iBanYx/bC8ElgiW0so6nRzQ4mqERsM1x73XgJqgAUWYN6URk/aW5XVE /Zeq/hsDAsZRLyDnBhZc1V8w8xX302C4oNlakJb0/BCtHW0fAG5/c3q8Ss54Wbgu som4LqLgxnC9qD4EM+Xe4PIzsIYG4tJu+35+bnfEpBDbIV1a67D49JxBsOk42/Dy fib2vcku2ggTbnYCQyJqPEiVfhtWb2PcWQwYVwixylJANoMyE/cUa+MgE1I0rZsZ O+7aGBZZefmNaDfGw6i2FF+8QpbRoEOBusxGVcZALqT1cSH0SJvWGxKc2cjkymXV ggExtdjlevgiQllXvv/M10kweOmQD8aAtKenWT8ccfJdxG9PulrZO+u/h53kW/ER PJmjfVNZH52qr84qxeB+1mL9L41cZGGd3ezJ4Z+qlHdXplZ90R7O2fXvnOmoR9Mb 1tqfdOLlwgEr3Tk3r/OnC2slEqrgtG6JoMhaSROxAZjdcvSXDDldNk7gTBetEM17 SwCZ8ayY1vbTR/f6 =vIQq -----END PGP SIGNATURE----- --=-=-=--