From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EOJ+DJ3SN2H3nAAAgWs5BA (envelope-from ) for ; Tue, 07 Sep 2021 22:59:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id kHkgCJ3SN2GrMgAAB5/wlQ (envelope-from ) for ; Tue, 07 Sep 2021 20:59:09 +0000 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 EDA2612DEE for ; Tue, 7 Sep 2021 22:59:08 +0200 (CEST) Received: from localhost ([::1]:43312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNiBQ-0003K1-3V for larch@yhetil.org; Tue, 07 Sep 2021 16:59:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNiBK-0003Jp-HP for guix-patches@gnu.org; Tue, 07 Sep 2021 16:59:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNiBK-0005pt-AF for guix-patches@gnu.org; Tue, 07 Sep 2021 16:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNiBK-00043u-4p for guix-patches@gnu.org; Tue, 07 Sep 2021 16:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50072] [PATCH WIP 4/4] upstream: Support updating git-fetch origins. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 07 Sep 2021 20:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50072 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Sarah Morgensen Cc: 50072@debbugs.gnu.org Received: via spool by 50072-submit@debbugs.gnu.org id=B50072.163104832315584 (code B ref 50072); Tue, 07 Sep 2021 20:59:02 +0000 Received: (at 50072) by debbugs.gnu.org; 7 Sep 2021 20:58:43 +0000 Received: from localhost ([127.0.0.1]:57940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNiB0-00043H-Qb for submit@debbugs.gnu.org; Tue, 07 Sep 2021 16:58:43 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:37842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNiAx-000437-CP for 50072@debbugs.gnu.org; Tue, 07 Sep 2021 16:58:41 -0400 Received: from butterfly.local ([188.188.3.227]) by xavier.telenet-ops.be with bizsmtp id r8yd250024tskic018ydrQ; Tue, 07 Sep 2021 22:58:37 +0200 Message-ID: <7905b183a5865bb597b10f8440074efa463ab544.camel@telenet.be> From: Maxime Devos Date: Tue, 07 Sep 2021 22:58:08 +0200 In-Reply-To: <86a6koi8ac.fsf@mgsn.dev> References: <8d1ae518b23fac5b15812a30b11df1c360ab3fbf.1629068119.git.iskarian@mgsn.dev> <86mtopi3s7.fsf@mgsn.dev> <470a95f159120d14384c3096cff91e3ce8d3c6c8.camel@telenet.be> <86a6koi8ac.fsf@mgsn.dev> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-dN7HVihbf6YFaANDYARA" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1631048317; bh=qUtpXVN7QUUaLSws7/ZeU/uLq+H/llwyZRuH0agtzVg=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=cnMZu8IV01pSc5QgKY1r9BfCZxa3BHHvd7srgUWCGjp1iIsRomqvsDcgYGvZTDscM +d0m/AwLLG0n6mJQbe09OCaEvm6mfJ5xOPXweYN5oCvVSVRaFHeCPFLMVyF4nB88lM tLsR1KzkKX5FHL6IqV9ACHBiUamzGkGayngA3F46q2x8aBd0S9mAu4bh/zQk7rh+7s YJGmaCn9aaw0HeO0HTrRS6A5HLx+dWKiGvPWiU6lP7jxuuBbqQlDGqbEyaXOQEg1S2 B/G0IWkRlOOuS8WMSC520WMBHDKoUegJb35G5TCJDaGdaaBj3i6rfi/hqMUP1YOLP3 bwfOsqwmXx3Ow== 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-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; none X-Migadu-Queue-Id: EDA2612DEE X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: /FVoqcDCl5Lx --=-dN7HVihbf6YFaANDYARA Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sarah Morgensen schreef op di 07-09-2021 om 10:51 [-0700]: > So there is a version number indicated elsewhere than in the tags for > some minetest packages? (Is this data in the package's git repo or in > e.g. minetest repo metadata?) That is, the minetest updater always uses > "blessed versions" (not just random commits), such that "revision" will > always be "0"? The minetest importer looks at ContentDB. E.g., for Jeija/mesecons: https://content.minetest.net/packages/Jeija/mesecons/. It doesn't look at git tags at all. It only clones the git repository to compute the hash. Strictly speaking, ContentDB only has =E2=80=98release titles=E2=80=99, and= not =E2=80=98version numbers=E2=80=99. Release titles are usually version numbers or dates. In the former case, a= ll is well. In the latter case, there isn't much the importer/updater can do abo= ut that, so it will use the date even though it isn't a =E2=80=98proper version numb= er=E2=80=99. Releases on ContentDB are ordered. The importer and refresher always use t= he latest release, not some random commit. ContentDB has a mapping from relea= ses to their commits, which the importer and refresher uses. So, yes, there are =E2=80=98blessed versions=E2=80=99. However, due to par= ticularities of how minetest mods are released, revision won't always be 0, because there are minetest mods that make a new release on ContentDB without a corresponding version bump (e.g. minetest-ethereal, minetest-mesecons, minetest-throwing, minetest-throwing-arrows). > Are current minetest packages like this formatted like 'gnash' above? About a third are formatted like 'gnash' (let ((commit ...) (revision ...))= ...)). Greetings, Maxime --=-dN7HVihbf6YFaANDYARA 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+4iGRcl7gUCYTfSYBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7lPAAQCDu0xEAeybas2f1Y3lnGkGYxJK 9NbcMQWMRRWX6bmLvgD/Wkkcowr0BIACPDCucoDP4n2KqS/W+PHletLtFJ+xNQ8= =mgxY -----END PGP SIGNATURE----- --=-dN7HVihbf6YFaANDYARA--