From patchwork Fri Oct 25 09:40:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 69458 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2994827BBE2; Fri, 25 Oct 2024 10:42:54 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B0D8427BBED for ; Fri, 25 Oct 2024 10:42:52 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t4GpB-0002Vt-PA; Fri, 25 Oct 2024 05:41:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t4Gp6-0002R9-66 for guix-patches@gnu.org; Fri, 25 Oct 2024 05:41:36 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t4Gp5-0003tx-TB for guix-patches@gnu.org; Fri, 25 Oct 2024 05:41:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=4OqNMgdUyx1UY5gvXxuwcZpY9gYVyyCNT8jhESXeCe0=; b=MXiUS3HUg2jjrML3NYOUJ2eru4b3scZOaO9AiTc+MZ9d72lj/EVvkRKtDcfEghM9yVSOUgPnlq+KpMmFowIBnYwm7STDfgfAeuIP53KIhyHTePgfyOjP2bdQH6YdYHEUx9FOierBO/Ka2kNPzoypN+8yr9o92Zt56uTv+YMmgqgstl1kptmSNNcCWzXPVPAUnp6G9rR9DEFBdanSN+7HCllcGgF5NAWtlMZsPUF/RMBpq+1VLkVKpyfzx88WlGr0UADosNvruaQ5IGmNy3HRfHUtk3poGW5dwQlsbk+KQa5I6wh63jz+sH6wVv0B7/0SPIR1LXL2oXk0sad/C4YgSg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t4Gpb-000270-Kd for guix-patches@gnu.org; Fri, 25 Oct 2024 05:42:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73927] [PATCH v3 12/17] installer: Fix file-name typos. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Oct 2024 09:42:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73927 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73927@debbugs.gnu.org Received: via spool by 73927-submit@debbugs.gnu.org id=B73927.17298492897938 (code B ref 73927); Fri, 25 Oct 2024 09:42:07 +0000 Received: (at 73927) by debbugs.gnu.org; 25 Oct 2024 09:41:29 +0000 Received: from localhost ([127.0.0.1]:37339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4Goz-00023s-2G for submit@debbugs.gnu.org; Fri, 25 Oct 2024 05:41:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4Gop-00021W-Nl for 73927@debbugs.gnu.org; Fri, 25 Oct 2024 05:41:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t4GoE-0003oY-KY; Fri, 25 Oct 2024 05:40:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=4OqNMgdUyx1UY5gvXxuwcZpY9gYVyyCNT8jhESXeCe0=; b=blsgfiQ3KoclBtkMx/xW Ax8dvwLWVgdQ7c26v7fzS1wGABkjD43E7vQUEPwPDVg7MCN9v8O+2Oavfbs5DSleqAvQOG6SSy6V5 Df0tPhf44fP2yd35vSeXgvES2pToR43t4KgaWz+i53RvTmfZhlt1yyyiovxYQqbuZ06HpMjwbM2iV 8yd6k4pio0Cne42soOMmEToODppIqobkOX4deAOG/4h+NJk0FrNohGrXOHFugYFjAz3+ka2R5RWAj ZfY6rGTnQ2ejRRBNLcvEMTSd4q4onbuoxuHhrWzrIIdom64R3dwExqOrBdwDCu7m/eTx8V6D8yihj ElQ3Y0FuW789gQ==; From: Janneke Nieuwenhuizen Date: Fri, 25 Oct 2024 11:40:04 +0200 Message-ID: <20241025094011.8540-13-janneke@gnu.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241025094011.8540-1-janneke@gnu.org> References: <20241025094011.8540-1-janneke@gnu.org> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/installer/newt/page.scm (run-dump-page): Typo file-name. * gnu/installer/utils.scm (open-new-log-port): Likewise. Change-Id: I837991a0ee5054b3afa8328205e23ac6f9fbae8d --- gnu/installer/newt/page.scm | 7 ++++--- gnu/installer/utils.scm | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/gnu/installer/newt/page.scm b/gnu/installer/newt/page.scm index e1623a51fd..64a2916826 100644 --- a/gnu/installer/newt/page.scm +++ b/gnu/installer/newt/page.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2018 Mathieu Othacehe ;;; Copyright © 2019, 2020, 2022 Ludovic Courtès ;;; Copyright © 2019 Tobias Geerinckx-Rice +;;; Copyright © 2024 Janneke Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -950,10 +951,10 @@ (define prompt-tag (make-prompt-tag)) ('exit-component (let ((result (map (match-lambda - ((edit checkbox filename) + ((edit checkbox file-name) (if (components=? edit argument) - (abort-to-prompt prompt-tag filename) - (cons filename (eq? #\x + (abort-to-prompt prompt-tag file-name) + (cons file-name (eq? #\x (checkbox-value checkbox)))))) components))) (destroy-form-and-pop form) diff --git a/gnu/installer/utils.scm b/gnu/installer/utils.scm index 6838410166..c722e9af8f 100644 --- a/gnu/installer/utils.scm +++ b/gnu/installer/utils.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018, 2020 Mathieu Othacehe ;;; Copyright © 2019, 2020, 2022 Ludovic Courtès +;;; Copyright © 2024 Janneke Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -283,11 +284,11 @@ (define-syntax syslog (define (open-new-log-port) (define now (localtime (time-second (current-time)))) - (define filename + (define file-name (format #f "/tmp/installer.~a.log" (strftime "%F.%T" now))) - (open filename (logior O_RDWR - O_CREAT))) + (open file-name (logior O_RDWR + O_CREAT))) (define installer-log-port (let ((port #f))