aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-05-14 22:07:02 +0200
committerRicardo Wurmus <rekado@elephly.net>2020-05-15 13:09:10 +0200
commit49ad6aec80394379c6b63e8c88608a104e1b5e40 (patch)
tree4cf32a5ee17f569c60c0df0ba945c9e1fc8ec6ab /gnu
parentf5789c265de99952ec703c3a5d8a2bfc1d9aa4d2 (diff)
downloadpatches-49ad6aec80394379c6b63e8c88608a104e1b5e40.tar
patches-49ad6aec80394379c6b63e8c88608a104e1b5e40.tar.gz
gnu: openjdk10: Simplify snippet.
* gnu/packages/java.scm (openjdk10)[source]: Use regular expression in find-files.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/java.scm4
1 files changed, 1 insertions, 3 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index ef7796f681..ba98182ede 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -1954,9 +1954,7 @@ new Date();"))
(modules '((guix build utils)))
(snippet
`(begin
- (for-each delete-file (find-files "." ".*.bin$"))
- (for-each delete-file (find-files "." ".*.exe$"))
- (for-each delete-file (find-files "." ".*.jar$"))
+ (for-each delete-file (find-files "." ".*.(bin|exe|jar)$"))
#t))))
(arguments
(substitute-keyword-arguments (package-arguments openjdk9)