substitute: Remove buffer handling from fetch.
http-fetch does this, so just set the right option. * guix/scripts/substitute.scm (fetch): Remove buffering code, and pass #:buffered? to http-fetch.
This commit is contained in:
		
							parent
							
								
									f1f6e49190
								
							
						
					
					
						commit
						fbd61b5d3d
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -204,10 +204,9 @@ connection (typically PORT) is kept open once data has been fetched from URI."
 | 
			
		|||
             (when (or (not port) (port-closed? port))
 | 
			
		||||
               (set! port (guix:open-connection-for-uri
 | 
			
		||||
                           uri #:verify-certificate? #f)))
 | 
			
		||||
             (unless (or buffered? (not (file-port? port)))
 | 
			
		||||
               (setvbuf port 'none))
 | 
			
		||||
             (http-fetch uri #:text? #f #:port port
 | 
			
		||||
                         #:keep-alive? keep-alive?
 | 
			
		||||
                         #:buffered? buffered?
 | 
			
		||||
                         #:verify-certificate? #f))))))
 | 
			
		||||
    (else
 | 
			
		||||
     (leave (G_ "unsupported substitute URI scheme: ~a~%")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue