From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ycERHgEwm2I2CgAAbAwnHQ (envelope-from ) for ; Sat, 04 Jun 2022 12:12:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gIcrHQEwm2I/kAAA9RJhRA (envelope-from ) for ; Sat, 04 Jun 2022 12:12:17 +0200 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 32D842D258 for ; Sat, 4 Jun 2022 12:12:17 +0200 (CEST) Received: from localhost ([::1]:34466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxQlT-0001e1-Tl for larch@yhetil.org; Sat, 04 Jun 2022 06:12:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxQlG-0001dM-T8 for guix-patches@gnu.org; Sat, 04 Jun 2022 06:12:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35556) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nxQlG-0008NV-EP for guix-patches@gnu.org; Sat, 04 Jun 2022 06:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nxQlG-0001ZE-A7 for guix-patches@gnu.org; Sat, 04 Jun 2022 06:12:02 -0400 Subject: bug#55673: [PATCH] cache: Catch valid integer for 'last-expiry-cleanup'. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sat, 04 Jun 2022 10:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 55673 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 55673-done@debbugs.gnu.org Mail-Followup-To: 55673@debbugs.gnu.org, ludo@gnu.org, zimon.toutoune@gmail.com Received: via spool by 55673-done@debbugs.gnu.org id=D55673.16543375115989 (code D ref 55673); Sat, 04 Jun 2022 10:12:02 +0000 Received: (at 55673-done) by debbugs.gnu.org; 4 Jun 2022 10:11:51 +0000 Received: from localhost ([127.0.0.1]:57685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxQl5-0001YX-C1 for submit@debbugs.gnu.org; Sat, 04 Jun 2022 06:11:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxQl3-0001YA-4m for 55673-done@debbugs.gnu.org; Sat, 04 Jun 2022 06:11:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxQkx-0008HE-Ut; Sat, 04 Jun 2022 06:11:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Yh/90v9sZOoYoMLbyAH2CA9f6rbDCQYbfPJAErpAwqg=; b=qzYSKhvwEorwiC5e8IhO y/hv6OSi6cjUcInJeymCapg3C+ePuP6n/vneezYXDHMYlrlqlA0NQlNDHp7JZtnlhMrXn+WUGXPp2 baRFOG6BNfub7sSIx2wZMBBt0sQffXS95/JEXf3hKNhf48Xciw2yJHXfudJZ5zds0kc4H1KpgkChJ of1fnax5xeyc8rR3hohUAhwqw2kivFFs6MRADQ159qbV/Az0jKqeb6rPZQK1btcX5rrYvhlngjp1P /g+GaIMaLJ40FV5sQbjWw4C5OYabA8lzZwv7LzGJ4ApIXBg3JR3q6zQZ9yILk95N5Wik+usRa6Wx1 Cb9u5tBl0hv4dQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:58354 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxQkx-0003bw-IV; Sat, 04 Jun 2022 06:11:43 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20220527082519.501697-1-zimon.toutoune@gmail.com> <20220530130714.2142519-1-zimon.toutoune@gmail.com> Date: Sat, 04 Jun 2022 12:11:42 +0200 In-Reply-To: <20220530130714.2142519-1-zimon.toutoune@gmail.com> (zimoun's message of "Mon, 30 May 2022 15:07:14 +0200") Message-ID: <87k09wg2ld.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654337537; 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:dkim-signature; bh=Yh/90v9sZOoYoMLbyAH2CA9f6rbDCQYbfPJAErpAwqg=; b=UDZfz2+jsV9POQOWIqMNjJWIgZRP1Mi33rA54TEinkqi0uwLTbi30k2JbrWb8cOGOio6qP yHzH1EvmP9vwVihn+6YML1r+0YiKrvwZ8HYzm1a8NrSuqmO7lb/5xyZg2l1S25bT4AnBKi hYmJy5fFmr7vV/7Sf6nezk9Qnn2ZvHm97kyDwL/Lu3Ks4A5jXyoweGkT/J6OaUIOM2sn7O saEvR8UwaUJcxnEfAN9g12pqLU0YnTfOBXWENscRRbCEhNUf55zdy1pTCNh7E5RXxQR10f wMwilMfBXoaQobwgFOiXHVZSJ2MBSbqPPOyb5SlSm0Wpb5cVaBmuRjCyfVbkwA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654337537; a=rsa-sha256; cv=none; b=ZL4GpddKKandJ/pQY7NE2zRlOkbxmA804H1ffUev120zoUJbfJO1cKljnIupWh3Qo/QYAM f+PgQIGEYt2YACuXzXjIKmoU9a6RDhnWZ53eUkOgdA5a7Qt7+3UZeiHBacsMjEW7IQvHUq TVLH8jCyxxHY1Z/WkU6BWawLKe/muAMNNkP49ZFGd2ELOrrfRb8mz/IMOyi8R7RjdQU0jd vsOsKm9NV4P01rFewsCeRGmoe4nN3HrUbWg+vSCgMlLSArxKPpfomSgxipJqovaYObFQoX j7aSlkZzh+BQLOXP6P0B5joUPMl27JR/BZouzzG+7aib6iPJVJFVh3Wugx1Oug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=qzYSKhvw; dmarc=pass (policy=none) header.from=gnu.org; 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.72 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=qzYSKhvw; dmarc=pass (policy=none) header.from=gnu.org; 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: 32D842D258 X-Spam-Score: -4.72 X-Migadu-Scanner: scn0.migadu.com X-TUID: ozHjdZ3zzxq2 Hi, zimoun skribis: > Fixes . > > * guix/cache.scm (maybe-remove-expired-cache-entries)[last-expiry-date]: = Check > if the value is a valid integer. > * tests/cache.scm: Test it. I simplified it a bit and pushed as 104b4e25ab7da5697f2f6f1ddfdd4955f05afece, thanks! Ludo=E2=80=99.