[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/80: installer: Use %default-subsitute-urls instead of our own variabl
From: |
John Darrington |
Subject: |
16/80: installer: Use %default-subsitute-urls instead of our own variable. |
Date: |
Tue, 3 Jan 2017 15:49:42 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit cd6fd079e61c07135902b673991164ba705c037c
Author: John Darrington <address@hidden>
Date: Thu Dec 22 08:51:20 2016 +0100
installer: Use %default-subsitute-urls instead of our own variable.
* gnu/system/installer/network.scm: Use %default-substitute-servers.
* gnu/system/installer/ping.scm (subsitute-servers): Delete variable,
(ping-page-key-handler) Use %default-substitute-servers.
---
gnu/system/installer/network.scm | 3 ++-
gnu/system/installer/ping.scm | 8 +++-----
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/gnu/system/installer/network.scm b/gnu/system/installer/network.scm
index 0330164..ab8add3 100644
--- a/gnu/system/installer/network.scm
+++ b/gnu/system/installer/network.scm
@@ -26,6 +26,7 @@
#:use-module (gurses menu)
#:use-module (gurses buttons)
#:use-module (ncurses curses)
+ #:use-module (guix store)
#:export (make-network-page))
@@ -158,7 +159,7 @@
(addstr* text-window (format #f
(gettext
- "To install GuixSD a connection to ~a must be available. The
following network devices exist on the system. Select one to configure or
\"Continue\" to proceeed.") (car substitution-servers)))
+ "To install GuixSD a connection to one of ~s must be available.
The following network devices exist on the system. Select one to configure or
\"Continue\" to proceeed.") %default-substitute-urls))
(page-set-wwin! p pr)
(page-set-datum! p 'menu menu)
diff --git a/gnu/system/installer/ping.scm b/gnu/system/installer/ping.scm
index f7956e1..fb00292 100644
--- a/gnu/system/installer/ping.scm
+++ b/gnu/system/installer/ping.scm
@@ -21,16 +21,14 @@
#:use-module (gnu system installer page)
#:use-module (gnu system installer misc)
#:use-module (gnu system installer utils)
+ #:use-module (guix store)
#:use-module (gurses buttons)
#:use-module (ncurses curses)
- #:export (substitution-servers)
#:export (ping-page-refresh)
#:export (ping-page-key-handler))
-(define substitution-servers '("mirror.hydra.gnu.org"))
-
(define my-buttons `((test ,(N_ "_Test") #t)
(continue ,(N_ "_Continue") #t)
(back ,(N_ "Go _Back") #t)))
@@ -67,9 +65,9 @@
((buttons-key-matches-symbol? nav ch 'test)
- (let* ((windowp (make-window-port test-window)))
+ (let* ();;(windowp (make-window-port test-window)))
(if (zero?
- (window-pipe test-window "ping" "ping" "-c" "3" (car
substitution-servers)))
+ (window-pipe test-window "ping" "ping" "-c" "3" (car
%default-substitute-urls)))
(addstr test-window
(gettext "Test successful. Network is working."))
(addstr test-window
- 37/80: installer: Improve dependencies on the final task., (continued)
- 37/80: installer: Improve dependencies on the final task., John Darrington, 2017/01/03
- 31/80: gnu: Add service to start the installer in installation-os., John Darrington, 2017/01/03
- 36/80: installer: Remove ad-hoc completed predicate and use standard one., John Darrington, 2017/01/03
- 35/80: installer: Make minumum-store-size variable global., John Darrington, 2017/01/03
- 34/80: installer: Add path to mount/umount commands in installer service., John Darrington, 2017/01/03
- 58/80: installer: Allow users to remove mount points during configuration., John Darrington, 2017/01/03
- 11/80: installer: Change "interfaces" from a variable to a procedure., John Darrington, 2017/01/03
- 14/80: installer: Add alternate method of finding TZDIR., John Darrington, 2017/01/03
- 13/80: installer: Use call-with-temporary-output-file., John Darrington, 2017/01/03
- 22/80: installer: Return slurped lines in their correct order., John Darrington, 2017/01/03
- 16/80: installer: Use %default-subsitute-urls instead of our own variable.,
John Darrington <=
- 10/80: installer: Perform a task's dependencies prior to the task itself., John Darrington, 2017/01/03
- 18/80: installer: Add completion predicate for disk task., John Darrington, 2017/01/03
- 20/80: installer: Remove unused procedure., John Darrington, 2017/01/03
- 30/80: installer: Add a variable to represent the minimum recommended store size., John Darrington, 2017/01/03
- 44/80: installer: Add wireless-tools bin directory to PATH., John Darrington, 2017/01/03
- 41/80: install: Define new procedure pipe-cmd and use it to implement window-pipe., John Darrington, 2017/01/03
- 40/80: installer: Ensure that all mount-points have a file system., John Darrington, 2017/01/03
- 42/80: installer: Correct bugs generating the configuration., John Darrington, 2017/01/03
- 47/80: installer: Turn off kernel ring messages to console., John Darrington, 2017/01/03
- 39/80: installer: New predicate valid-hostname?, John Darrington, 2017/01/03