gnu: Raise an error when a bootstrap binary is not found.
* gnu/packages.scm (search-bootstrap-binary): Raise an error when FILE-NAME is not found.
This commit is contained in:
		
							parent
							
								
									836223f746
								
							
						
					
					
						commit
						dfba54893e
					
				
					 1 changed files with 10 additions and 3 deletions
				
			
		| 
						 | 
					@ -79,9 +79,16 @@
 | 
				
			||||||
                                         file-name)))))))
 | 
					                                         file-name)))))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define (search-bootstrap-binary file-name system)
 | 
					(define (search-bootstrap-binary file-name system)
 | 
				
			||||||
  "Search the bootstrap binary FILE-NAME for SYSTEM."
 | 
					  "Search the bootstrap binary FILE-NAME for SYSTEM.  Raise an error if not
 | 
				
			||||||
  (search-path (%bootstrap-binaries-path)
 | 
					found."
 | 
				
			||||||
               (string-append system "/" file-name)))
 | 
					  (or (search-path (%bootstrap-binaries-path)
 | 
				
			||||||
 | 
					                   (string-append system "/" file-name))
 | 
				
			||||||
 | 
					      (raise (condition
 | 
				
			||||||
 | 
					              (&message
 | 
				
			||||||
 | 
					               (message
 | 
				
			||||||
 | 
					                (format #f (_ "could not find bootstrap binary '~a' \
 | 
				
			||||||
 | 
					for system '~a'")
 | 
				
			||||||
 | 
					                        file-name system)))))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define %distro-root-directory
 | 
					(define %distro-root-directory
 | 
				
			||||||
  ;; Absolute file name of the module hierarchy.
 | 
					  ;; Absolute file name of the module hierarchy.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue