summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/packages.scm b/gnu/packages.scm
index 7f0b58b971a..263addb8beb 100644
--- a/gnu/packages.scm
+++ b/gnu/packages.scm
@@ -30,6 +30,8 @@
30 #:use-module (srfi srfi-1) 30 #:use-module (srfi srfi-1)
31 #:use-module (srfi srfi-11) 31 #:use-module (srfi srfi-11)
32 #:use-module (srfi srfi-26) 32 #:use-module (srfi srfi-26)
33 #:use-module (srfi srfi-34)
34 #:use-module (srfi srfi-35)
33 #:use-module (srfi srfi-39) 35 #:use-module (srfi srfi-39)
34 #:export (search-patch 36 #:export (search-patch
35 search-bootstrap-binary 37 search-bootstrap-binary
@@ -70,8 +72,11 @@
70 %load-path))) 72 %load-path)))
71 73
72(define (search-patch file-name) 74(define (search-patch file-name)
73 "Search the patch FILE-NAME." 75 "Search the patch FILE-NAME. Raise an error if not found."
74 (search-path (%patch-path) file-name)) 76 (or (search-path (%patch-path) file-name)
77 (raise (condition
78 (&message (message (format #f (_ "~a: patch not found")
79 file-name)))))))
75 80
76(define (search-bootstrap-binary file-name system) 81(define (search-bootstrap-binary file-name system)
77 "Search the bootstrap binary FILE-NAME for SYSTEM." 82 "Search the bootstrap binary FILE-NAME for SYSTEM."