mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
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 @@ (define-module (gnu packages chromium)
|
|||
#: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 @@ (define %debian-origin
|
|||
(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"))))
|
||||
|
|
Loading…
Reference in a new issue