[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/12: installer: Correct bug where the timezone page returned to the wr
From: |
John Darrington |
Subject: |
12/12: installer: Correct bug where the timezone page returned to the wrong page. |
Date: |
Sun, 15 Jan 2017 15:45:40 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit ac6599d0457535d35db6377b130d9a4f97791931
Author: John Darrington <address@hidden>
Date: Sun Jan 15 16:30:49 2017 +0100
installer: Correct bug where the timezone page returned to the wrong page.
* gnu/system/installer/time-zone.scm (make-tz-page) : Remove exit-point
parameter.
* gnu/system/installer/guixsd-installer.scm (mount-options): Change call
to make-tz-page to match new signature.
---
gnu/system/installer/guixsd-installer.scm | 3 +--
gnu/system/installer/time-zone.scm | 12 +++++-------
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/gnu/system/installer/guixsd-installer.scm
b/gnu/system/installer/guixsd-installer.scm
index 348e073..36fb6e5 100644
--- a/gnu/system/installer/guixsd-installer.scm
+++ b/gnu/system/installer/guixsd-installer.scm
@@ -116,8 +116,7 @@
(or
(getenv "TZDIR")
(string-append (car (slurp "guix build tzdata"
#f))
- "/share/zoneinfo"))
- page-stack))))
+ "/share/zoneinfo"))))))
(hostname . ,(make-task hostname-menu-title
'()
diff --git a/gnu/system/installer/time-zone.scm
b/gnu/system/installer/time-zone.scm
index ad62514..cdbd56d 100644
--- a/gnu/system/installer/time-zone.scm
+++ b/gnu/system/installer/time-zone.scm
@@ -32,16 +32,13 @@
str)))
-(define* (make-tz-browser parent directory #:optional (exit-point #f))
+(define (make-tz-browser parent directory)
(let ((page (make-page (page-surface parent)
(gettext "Time Zone")
time-zone-page-refresh
0
time-zone-page-key-handler)))
(page-set-datum! page 'directory directory)
- (if exit-point
- (page-set-datum! page 'exit-point exit-point)
- (page-set-datum! page 'exit-point (page-datum parent 'exit-point)))
page))
@@ -71,19 +68,20 @@
(st (lstat new-dir)))
(if (and (file-exists? new-dir)
(eq? 'directory (stat:type st)))
- (let ((p (make-tz-browser
- page new-dir)))
+ (let ((p (make-tz-browser page new-dir)))
(page-set-datum! p 'stem
(if (page-datum page 'stem)
(string-append (page-datum page 'stem) "/" i)
i))
+ ;; Don't go back to the current page!
+ (set! page-stack (cdr page-stack))
(page-enter p))
(begin
(set! time-zone
(if (page-datum page 'stem)
(string-append (page-datum page 'stem) "/" i)
i))
- (page-leave (page-datum page 'exit-point))
+ (page-leave)
#f)))
))
(std-menu-key-handler menu ch)
- branch wip-installer updated (3673cd8 -> ac6599d), John Darrington, 2017/01/15
- 08/12: installer: Correct bug detecting a wireless interface., John Darrington, 2017/01/15
- 01/12: installer: Add callback parameter for forms., John Darrington, 2017/01/15
- 04/12: installer: Add the notion of uuids to prospective filesystems., John Darrington, 2017/01/15
- 05/12: installer: Add a predicate to ensure the partitions have been formatted., John Darrington, 2017/01/15
- 09/12: installer: Exit the format page after all partitions are successfully formatted., John Darrington, 2017/01/15
- 11/12: installer: Replace one usage of car with match., John Darrington, 2017/01/15
- 10/12: installer: Do not perform tasks more than once., John Darrington, 2017/01/15
- 12/12: installer: Correct bug where the timezone page returned to the wrong page.,
John Darrington <=
- 02/12: installer: Remove mkfs capability from mount points page., John Darrington, 2017/01/15
- 06/12: installer: Changed N_ to M_ since N_ is used for another purpose in guix/ui.scm, John Darrington, 2017/01/15
- 07/12: installer: Whitespace changes only, John Darrington, 2017/01/15
- 03/12: installer: Add a dedicated make to format filesystems., John Darrington, 2017/01/15