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.
This commit is contained in:
parent
2cbccf7f65
commit
4cac557911
1 changed files with 5 additions and 4 deletions
|
@ -69,7 +69,8 @@
|
||||||
#:use-module (gnu packages xiph)
|
#:use-module (gnu packages xiph)
|
||||||
#:use-module (gnu packages xml)
|
#:use-module (gnu packages xml)
|
||||||
#:use-module (gnu packages xdisorg)
|
#: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
|
(define %preserved-third-party-files
|
||||||
'("base/third_party/cityhash" ;Expat
|
'("base/third_party/cityhash" ;Expat
|
||||||
|
@ -278,9 +279,9 @@ from forcing GEXP-PROMISE."
|
||||||
(url "https://salsa.debian.org/chromium-team/chromium.git")
|
(url "https://salsa.debian.org/chromium-team/chromium.git")
|
||||||
(commit %debian-revision)))
|
(commit %debian-revision)))
|
||||||
(file-name (git-file-name "debian-chromium-packaging"
|
(file-name (git-file-name "debian-chromium-packaging"
|
||||||
(if (string-prefix? "debian/" %debian-revision)
|
(match (string-split %debian-revision #\/)
|
||||||
(cadr (string-split %debian-revision #\/))
|
((_ revision) revision)
|
||||||
(string-take %debian-revision 7))))
|
(_ (string-take %debian-revision 7)))))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1rbzxcwfp7v0c6rkvn9jl9by7p363cnbdyqazwiak1z03kmw3nkz"))))
|
"1rbzxcwfp7v0c6rkvn9jl9by7p363cnbdyqazwiak1z03kmw3nkz"))))
|
||||||
|
|
Reference in a new issue