[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
39/197: installer: Replace an instance of cdr with match.
From: |
Danny Milosavljevic |
Subject: |
39/197: installer: Replace an instance of cdr with match. |
Date: |
Mon, 3 Jul 2017 20:36:56 -0400 (EDT) |
dannym pushed a commit to branch wip-installer-2
in repository guix.
commit 540321efc19274164a75890b2af4fc9df91cd5e3
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"
- 29/197: installer: Add a task to actually call guix system init., (continued)
- 29/197: installer: Add a task to actually call guix system init., Danny Milosavljevic, 2017/07/03
- 53/197: installer: Change N_ from a procedure to a macro., Danny Milosavljevic, 2017/07/03
- 50/197: installer: Issue message to user on failure of filesystems task., Danny Milosavljevic, 2017/07/03
- 61/197: installer: Indicate which wireless access points are encrypted., Danny Milosavljevic, 2017/07/03
- 59/197: installer: Format configuration to fix width of window., Danny Milosavljevic, 2017/07/03
- 65/197: installer: Ensure that all mount points are absolute paths., Danny Milosavljevic, 2017/07/03
- 09/197: installer: Use a record instead of a list to contain tasks., Danny Milosavljevic, 2017/07/03
- 23/197: installer: Use a cleaner way of generating the lspci information., Danny Milosavljevic, 2017/07/03
- 35/197: installer: New predicate valid-hostname?, Danny Milosavljevic, 2017/07/03
- 36/197: installer: Ensure that all mount-points have a file system., Danny Milosavljevic, 2017/07/03
- 39/197: installer: Replace an instance of cdr with match.,
Danny Milosavljevic <=
- 46/197: installer: Replace "%temporary-configuration-file-port" with "config-file"., Danny Milosavljevic, 2017/07/03
- 30/197: installer: Write the configuration to a temporary file., Danny Milosavljevic, 2017/07/03
- 24/197: installer: Add a new menu to configure wireless interfaces., Danny Milosavljevic, 2017/07/03
- 49/197: installer: Replace spawned mount command with the mount syscall., Danny Milosavljevic, 2017/07/03
- 44/197: installer: Use consistent window heights., Danny Milosavljevic, 2017/07/03
- 52/197: installer: Prevent the user specifying the same mount point twice., Danny Milosavljevic, 2017/07/03
- 51/197: installer: Allow users to remove mount points during configuration., Danny Milosavljevic, 2017/07/03
- 14/197: installer: Add procedures to replace car/cdr since these are frounded upon by Guile gurus., Danny Milosavljevic, 2017/07/03
- 55/197: installer: Use global variable instead of string literal for "/gnu"., Danny Milosavljevic, 2017/07/03
- 54/197: installer: Change the order of the filesystem task conditions., Danny Milosavljevic, 2017/07/03