summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-05-14 22:07:02 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2020-05-17 15:16:44 +0200
commit8a938d4b79dc30d5b791b6779dae6d974fb81667 (patch)
treedbfee08c248b3b497d926f704f1c772e7f86ae9d /gnu/packages
parentf3273e0f713bf28c32ddc9b9546c81c033db7330 (diff)
downloadguix-8a938d4b79dc30d5b791b6779dae6d974fb81667.tar.gz
gnu: openjdk10: Simplify snippet.
* gnu/packages/java.scm (openjdk10)[source]: Use regular expression in
find-files.
Diffstat (limited to 'gnu/packages')
-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)