[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/197: installer: Fix incorrect host in ping task.
From: |
Danny Milosavljevic |
Subject: |
21/197: installer: Fix incorrect host in ping task. |
Date: |
Mon, 3 Jul 2017 20:36:53 -0400 (EDT) |
dannym pushed a commit to branch wip-installer-2
in repository guix.
commit 6630530aef471d439af7398501f5cf25a535d45f
Author: John Darrington <address@hidden>
Date: Fri Dec 23 20:45:23 2016 +0100
installer: Fix incorrect host in ping task.
* gnu/system/installer/ping.scm (ping-page-key-handler): Use host part of
uri
only. Commit cd6fd079e61c07135902b673991164ba705c037c inadvertently
introduced
this bug.
---
gnu/system/installer/ping.scm | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/gnu/system/installer/ping.scm b/gnu/system/installer/ping.scm
index fb00292..2adee6f 100644
--- a/gnu/system/installer/ping.scm
+++ b/gnu/system/installer/ping.scm
@@ -24,7 +24,7 @@
#:use-module (guix store)
#:use-module (gurses buttons)
#:use-module (ncurses curses)
-
+ #:use-module (web uri)
#:export (ping-page-refresh)
#:export (ping-page-key-handler))
@@ -45,10 +45,10 @@
(cond
((eqv? (buttons-selected nav) (1- (buttons-n-buttons nav)))
(buttons-unselect-all nav))
-
+
(else
(buttons-select-next nav))))
-
+
((eq? ch KEY_LEFT)
(buttons-select-prev nav))
@@ -62,17 +62,20 @@
(delwin (page-datum page 'test-window))
(set! page-stack (cdr page-stack))
)
-
- ((buttons-key-matches-symbol? nav ch 'test)
- (let* ();;(windowp (make-window-port test-window)))
+ ((buttons-key-matches-symbol? nav ch 'test)
+ (let* ()
(if (zero?
- (window-pipe test-window "ping" "ping" "-c" "3" (car
%default-substitute-urls)))
+ (window-pipe test-window "ping" "ping" "-c" "3"
+ (uri-host
+ (string->uri
+ (car %default-substitute-urls)))))
+
(addstr test-window
(gettext "Test successful. Network is working."))
(addstr test-window
(gettext "Test failed. No servers reached.")))
-
+
(refresh test-window)))) #f))
(define (ping-page-refresh page)
@@ -113,6 +116,3 @@
(buttons-post buttons button-window)
(refresh text-window)
(refresh button-window)))
-
-
-
- 06/197: installer: use ice-9 format everywhere., (continued)
- 06/197: installer: use ice-9 format everywhere., Danny Milosavljevic, 2017/07/03
- 11/197: installer: Change "interfaces" from a variable to a procedure., Danny Milosavljevic, 2017/07/03
- 16/197: installer: Add new procedure to get the list of volumes., Danny Milosavljevic, 2017/07/03
- 15/197: installer: Use %default-subsitute-urls instead of our own variable., Danny Milosavljevic, 2017/07/03
- 19/197: installer: Remove unused procedure., Danny Milosavljevic, 2017/07/03
- 18/197: installer: Handle the 'back' action in the filesystems task., Danny Milosavljevic, 2017/07/03
- 13/197: installer: Add alternate method of finding TZDIR., Danny Milosavljevic, 2017/07/03
- 31/197: installer: Make minumum-store-size variable global., Danny Milosavljevic, 2017/07/03
- 33/197: installer: Improve dependencies on the final task., Danny Milosavljevic, 2017/07/03
- 17/197: installer: Add completion predicate for disk task., Danny Milosavljevic, 2017/07/03
- 21/197: installer: Fix incorrect host in ping task.,
Danny Milosavljevic <=
- 20/197: installer: Return slurped lines in their correct order., Danny Milosavljevic, 2017/07/03
- 25/197: installer: Connect ethernet interfaces on selection., Danny Milosavljevic, 2017/07/03
- 03/197: installer: Remove obsolete procedures/variables, Danny Milosavljevic, 2017/07/03
- 10/197: installer: Perform a task's dependencies prior to the task itself., Danny Milosavljevic, 2017/07/03
- 22/197: installer: Make "interfaces" return an alist., Danny Milosavljevic, 2017/07/03
- 26/197: installer: Let the kernel know about (possibly) changed partitions., Danny Milosavljevic, 2017/07/03
- 27/197: installer: Deal with partition tables which are (partially) corrupt., Danny Milosavljevic, 2017/07/03
- 28/197: installer: Add a variable to represent the minimum recommended store size., Danny Milosavljevic, 2017/07/03
- 32/197: installer: Remove ad-hoc completed predicate and use standard one., Danny Milosavljevic, 2017/07/03
- 34/197: installer: Replace some instances of "car"., Danny Milosavljevic, 2017/07/03