diff options
-rw-r--r-- | crn/packages.scm | 15 |
1 files changed, 5 insertions, 10 deletions
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) |