From 8a938d4b79dc30d5b791b6779dae6d974fb81667 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 14 May 2020 22:07:02 +0200 Subject: [PATCH] gnu: openjdk10: Simplify snippet. * gnu/packages/java.scm (openjdk10)[source]: Use regular expression in find-files. --- gnu/packages/java.scm | 4 +--- 1 file changed, 1 insertion(+), 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 @@ (define-public openjdk10 (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)