From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mF2EK0V9qWB2gAAAgWs5BA (envelope-from ) for ; Sat, 22 May 2021 23:53: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 mp0 with LMTPS id uHsnJ0V9qWDHVgAA1q6Kng (envelope-from ) for ; Sat, 22 May 2021 21:53: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 65DFF26E77 for ; Sat, 22 May 2021 23:53:09 +0200 (CEST) Received: from localhost ([::1]:39618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkZYS-0001rw-Gg for larch@yhetil.org; Sat, 22 May 2021 17:53:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkZYM-0001rh-Nt for guix-patches@gnu.org; Sat, 22 May 2021 17:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56899) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lkZYM-0005GI-GS for guix-patches@gnu.org; Sat, 22 May 2021 17:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lkZYM-0004a0-GI for guix-patches@gnu.org; Sat, 22 May 2021 17:53:02 -0400 Subject: bug#48437: [PATCH] lint: archival: Lookup content in Disarchive database. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sat, 22 May 2021 21:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 48437 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48437-done@debbugs.gnu.org Cc: Timothy Sample Mail-Followup-To: 48437@debbugs.gnu.org, ludo@gnu.org, ludo@gnu.org Received: via spool by 48437-done@debbugs.gnu.org id=D48437.162172035917564 (code D ref 48437); Sat, 22 May 2021 21:53:02 +0000 Received: (at 48437-done) by debbugs.gnu.org; 22 May 2021 21:52:39 +0000 Received: from localhost ([127.0.0.1]:40211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkZXz-0004ZE-DN for submit@debbugs.gnu.org; Sat, 22 May 2021 17:52:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkZXx-0004Z1-Qg for 48437-done@debbugs.gnu.org; Sat, 22 May 2021 17:52:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40938) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkZXs-00055U-Ei; Sat, 22 May 2021 17:52:32 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=55782 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkZXs-0006Il-6V; Sat, 22 May 2021 17:52:32 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87a6or67em.fsf_-_@gnu.org> <20210521102703.23383-1-ludo@gnu.org> Date: Sat, 22 May 2021 23:52:31 +0200 In-Reply-To: <20210521102703.23383-1-ludo@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 21 May 2021 12:27:03 +0200") Message-ID: <87im3a5tcw.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621720389; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: 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; bh=sKdGJr/hV4LvzLpgWfALG8DcpTc3I1PbnvOWOI5+3eA=; b=be9TXYIBw/SuDoTG/f5G7Sho2xzYPD/1Q9YBxL4cnWNsOvChyFom38AdXqFFRfEU5r726q eRMzuh818iKGNp55q6wLNHFu8/NJ657MvXPfwxqY1flhMfC7i1IQd7T5khXzJkGPPFs2ad bnfo/TknkHcBah1p3MsG+woNbe+xlIixkOvC94dEjBcBJbx7KXlEhLQoFORWyKgxNA5iUB M6J1Tq/mrzNuEC/8kBscfgdkKag2wYj9LHXb7Z9BIXTi1XIjAi9Z4gQ5WP4SFkPvApmh08 sdHF7Qf2hDvOAb2WoUcYaNq99y2OaYgBmoEurvc8XtcIxBy5S0/1pAPW4pBLAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621720389; a=rsa-sha256; cv=none; b=EzBpgY8Oq+aVyna+nkEUh3OGi9QkmDt9eRjAqvIR87LZAC7kGvywfvZBiagP2CaZG/y2KF 8s+1V4xJVUISTjZ3IBA5xrlwctsOlkWYun+tKS0t3g/mcKA/tAlv5YMtVpvmjcgr1mOT0s Gymrb6twkLNjEQhg2w5wxPeiDMNOiNc7lRu32wWeOBLfCe3WdXUwlkhPzdcAKCkrcKYSfc XkK9/0BiMsqTILYHh6r+tPOelYV7KqXUyXAOA9q8uF1yByqzT9iwgXaU8o+N91SWrpF/OL HZzPUutKJ+OlD1ZdftWj+rU/Uu4cgfBbhBDudi3kvzGQfM8eUL2jKHWYIAOI+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.93 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 65DFF26E77 X-Spam-Score: -2.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: ePIhK6xqhxBt Hi, Ludovic Court=C3=A8s skribis: > * guix/lint.scm (lookup-disarchive-spec): New procedure. > (check-archival): When 'lookup-content' returns #f, call > 'lookup-disarchive-spec'. Call 'lookup-directory' on the result of > 'lookup-directory'. > * guix/download.scm (%disarchive-mirrors): Make public. > * tests/lint.scm ("archival: missing content"): Set > '%disarchive-mirrors'. > ("archival: content unavailable but disarchive available"): New test. Following our discussion on IRC, I pushed this variant as bc4d81d267830a3b1ccb63198f4100cc836e4e4e. Thanks for taking a look! Ludo=E2=80=99.