From 08429cbae8816977d5e63d2dc2c989289dc367cf Mon Sep 17 00:00:00 2001 From: "Christopher R. Nelson" Date: Sat, 13 May 2023 14:16:34 -0400 Subject: update search-patch to be public? --- crn/packages.scm | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'crn') diff --git a/crn/packages.scm b/crn/packages.scm index 7b88857..2001235 100644 --- a/crn/packages.scm +++ b/crn/packages.scm @@ -27,20 +27,15 @@ (define (crn/search-patch file-name) "Search the patch FILE-NAME. Raise an error if not found." - (search-path (%patch-path) file-name)) - ;; (or (search-path (%patch-path) file-name) - ;; (raise (formatted-message (G_ "~a: patch not found") - ;; file-name)))) + ;;(search-path (%patch-path) file-name)) + (or (search-path (%patch-path) file-name) + (raise (formatted-message (G_ "~a: patch not found") + file-name)))) (define-syntax-rule (crn/search-patches file-name ...) "Return the list of absolute file names corresponding to each FILE-NAME found in %PATCH-PATH." - (list (search-path - (cons (string-append - (find (lambda (path) (file-exists? (string-append path "/crn/packages.scm"))) %load-path) - "/crn/packages/patches") - gnu:%patch-path) - file-name) ...)) + (list (search-path (%patch-path) file-name) ...)) (define %channel-root (find (lambda (path) -- cgit v1.2.3