[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/21: installer: Replace an instance of cdr with match.
From: |
John Darrington |
Subject: |
02/21: installer: Replace an instance of cdr with match. |
Date: |
Sat, 31 Dec 2016 14:54:17 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit d2fcd7c34aa60659a30e2b0f11d7c7a9d77becb1
Author: John Darrington <address@hidden>
Date: Tue Dec 27 07:58:31 2016 +0100
installer: Replace an instance of cdr with match.
* gnu/system/installer/wireless.scm (scan-wifi): Use match instead of cdr.
---
gnu/system/installer/wireless.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/system/installer/wireless.scm
b/gnu/system/installer/wireless.scm
index 3eeb532..5e04acf 100644
--- a/gnu/system/installer/wireless.scm
+++ b/gnu/system/installer/wireless.scm
@@ -174,7 +174,9 @@ network={
"" s))
(define (scan-wifi ifce)
- (cdr (slurp (string-append "iwlist " ifce " scan") string-trim-both)))
+ (match (slurp (string-append "iwlist " ifce " scan") string-trim-both)
+ (#f '())
+ ((_ . lines) lines))) ;; Ignore the first line
(define (drop-prefix pfx s)
"Drop PFX from S if it is the first string"
- branch wip-installer updated (d654694 -> d5eb580), John Darrington, 2016/12/31
- 03/21: installer: Add inetutils bin directory to PATH., John Darrington, 2016/12/31
- 05/21: installer: Enable scrolling in the installation window., John Darrington, 2016/12/31
- 06/21: installer: Wrap installer in (catch #t ...), John Darrington, 2016/12/31
- 16/21: installer: Prevent the user specifying the same mount point twice., John Darrington, 2016/12/31
- 04/21: installer: Turn off kernel ring messages to console., John Darrington, 2016/12/31
- 01/21: installer: Add wireless-tools bin directory to PATH., John Darrington, 2016/12/31
- 02/21: installer: Replace an instance of cdr with match.,
John Darrington <=
- 12/21: installer: Close unused ports in pipe-cmd., John Darrington, 2016/12/31
- 08/21: installer: Use consistent window heights., John Darrington, 2016/12/31
- 20/21: installer: Do not use /tmp for holding the configuration., John Darrington, 2016/12/31
- 14/21: installer: Issue message to user on failure of filesystems task., John Darrington, 2016/12/31
- 07/21: installer: Rename module "new" to "guixsd-installer"., John Darrington, 2016/12/31
- 13/21: installer: Replace spawned mount command with the mount syscall., John Darrington, 2016/12/31
- 11/21: installer: Improve install page., John Darrington, 2016/12/31
- 10/21: installer: Replace "%temporary-configuration-file-port" with "config-file"., John Darrington, 2016/12/31
- 19/21: installer: Use global variable instead of string literal for "/gnu"., John Darrington, 2016/12/31
- 17/21: installer: Change N_ from a procedure to a macro., John Darrington, 2016/12/31