[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/13: gnu: chromium.scm: Remove use of CADR.
From: |
guix-commits |
Subject: |
01/13: gnu: chromium.scm: Remove use of CADR. |
Date: |
Mon, 10 Feb 2020 14:34:09 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 4cac55791176f0db521dce0b7918fd3daae8a0bb
Author: Marius Bakke <address@hidden>
AuthorDate: Wed Feb 5 11:32:19 2020 +0100
gnu: chromium.scm: Remove use of CADR.
...as per the style guidelines.
* gnu/packages/chromium.scm (%debian-origin)[file-name]: Use MATCH instead
of
IF and CADR to compute the name.
---
gnu/packages/chromium.scm | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/chromium.scm b/gnu/packages/chromium.scm
index ecded29..49ad8de 100644
--- a/gnu/packages/chromium.scm
+++ b/gnu/packages/chromium.scm
@@ -69,7 +69,8 @@
#:use-module (gnu packages xiph)
#:use-module (gnu packages xml)
#:use-module (gnu packages xdisorg)
- #:use-module (gnu packages xorg))
+ #:use-module (gnu packages xorg)
+ #:use-module (ice-9 match))
(define %preserved-third-party-files
'("base/third_party/cityhash" ;Expat
@@ -278,9 +279,9 @@ from forcing GEXP-PROMISE."
(url "https://salsa.debian.org/chromium-team/chromium.git")
(commit %debian-revision)))
(file-name (git-file-name "debian-chromium-packaging"
- (if (string-prefix? "debian/" %debian-revision)
- (cadr (string-split %debian-revision #\/))
- (string-take %debian-revision 7))))
+ (match (string-split %debian-revision #\/)
+ ((_ revision) revision)
+ (_ (string-take %debian-revision 7)))))
(sha256
(base32
"1rbzxcwfp7v0c6rkvn9jl9by7p363cnbdyqazwiak1z03kmw3nkz"))))
- branch master updated (2cbccf7 -> e7ce4ef), guix-commits, 2020/02/10
- 01/13: gnu: chromium.scm: Remove use of CADR.,
guix-commits <=
- 02/13: gnu: swaybg: Remove unused input., guix-commits, 2020/02/10
- 03/13: gnu: swaylock: Remove unused input., guix-commits, 2020/02/10
- 04/13: gnu: sway: Remove unused input., guix-commits, 2020/02/10
- 05/13: gnu: signify: Update to 28., guix-commits, 2020/02/10
- 06/13: gnu: strace: Update to 5.5., guix-commits, 2020/02/10
- 09/13: gnu: ceph: Update to 14.2.7., guix-commits, 2020/02/10
- 12/13: gnu: node: Disable flaky test., guix-commits, 2020/02/10
- 07/13: gnu: http-parser: Update to 2.9.3., guix-commits, 2020/02/10
- 08/13: gnu: rocksdb: Update to 6.6.4., guix-commits, 2020/02/10
- 11/13: gnu: python-protobuf: Update to 3.11.3., guix-commits, 2020/02/10