diff options
| author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-10-17 11:16:26 +0200 |
|---|---|---|
| committer | Jan (janneke) Nieuwenhuizen <janneke@gnu.org> | 2024-11-11 07:28:34 +0100 |
| commit | e57bc3bcde9fc200c9196e94b29bf7b5b427411e (patch) | |
| tree | 057a3b01a80cc8e5c5276e5f1a5ab44c330bdf99 | |
| parent | 31f687f2581c9ceb709c6daea7284621e553cfa2 (diff) | |
installer: Fix file-name typos.
* gnu/installer/newt/page.scm (run-dump-page): Typo file-name.
* gnu/installer/utils.scm (open-new-log-port): Likewise.
Change-Id: I837991a0ee5054b3afa8328205e23ac6f9fbae8d
| -rw-r--r-- | gnu/installer/newt/page.scm | 7 | ||||
| -rw-r--r-- | 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 e1623a51fd0..64a29168263 100644 --- a/gnu/installer/newt/page.scm +++ b/gnu/installer/newt/page.scm | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | ;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com> | 2 | ;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com> |
| 3 | ;;; Copyright © 2019, 2020, 2022 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2019, 2020, 2022 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr> | 4 | ;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr> |
| 5 | ;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org> | ||
| 5 | ;;; | 6 | ;;; |
| 6 | ;;; This file is part of GNU Guix. | 7 | ;;; This file is part of GNU Guix. |
| 7 | ;;; | 8 | ;;; |
| @@ -950,10 +951,10 @@ the dump." | |||
| 950 | ('exit-component | 951 | ('exit-component |
| 951 | (let ((result | 952 | (let ((result |
| 952 | (map (match-lambda | 953 | (map (match-lambda |
| 953 | ((edit checkbox filename) | 954 | ((edit checkbox file-name) |
| 954 | (if (components=? edit argument) | 955 | (if (components=? edit argument) |
| 955 | (abort-to-prompt prompt-tag filename) | 956 | (abort-to-prompt prompt-tag file-name) |
| 956 | (cons filename (eq? #\x | 957 | (cons file-name (eq? #\x |
| 957 | (checkbox-value checkbox)))))) | 958 | (checkbox-value checkbox)))))) |
| 958 | components))) | 959 | components))) |
| 959 | (destroy-form-and-pop form) | 960 | (destroy-form-and-pop form) |
diff --git a/gnu/installer/utils.scm b/gnu/installer/utils.scm index 6838410166d..c722e9af8fe 100644 --- a/gnu/installer/utils.scm +++ b/gnu/installer/utils.scm | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2018, 2020 Mathieu Othacehe <m.othacehe@gmail.com> | 2 | ;;; Copyright © 2018, 2020 Mathieu Othacehe <m.othacehe@gmail.com> |
| 3 | ;;; Copyright © 2019, 2020, 2022 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2019, 2020, 2022 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org> | ||
| 4 | ;;; | 5 | ;;; |
| 5 | ;;; This file is part of GNU Guix. | 6 | ;;; This file is part of GNU Guix. |
| 6 | ;;; | 7 | ;;; |
| @@ -283,11 +284,11 @@ values." | |||
| 283 | 284 | ||
| 284 | (define (open-new-log-port) | 285 | (define (open-new-log-port) |
| 285 | (define now (localtime (time-second (current-time)))) | 286 | (define now (localtime (time-second (current-time)))) |
| 286 | (define filename | 287 | (define file-name |
| 287 | (format #f "/tmp/installer.~a.log" | 288 | (format #f "/tmp/installer.~a.log" |
| 288 | (strftime "%F.%T" now))) | 289 | (strftime "%F.%T" now))) |
| 289 | (open filename (logior O_RDWR | 290 | (open file-name (logior O_RDWR |
| 290 | O_CREAT))) | 291 | O_CREAT))) |
| 291 | 292 | ||
| 292 | (define installer-log-port | 293 | (define installer-log-port |
| 293 | (let ((port #f)) | 294 | (let ((port #f)) |
