download: Remove spurious warning about 'https_proxy'.
* guix/build/download.scm (open-connection-for-uri)[with-https-proxy]: Warn about 'https_proxy' only when 'getenv' returns a non-empty string.
This commit is contained in:
		
							parent
							
								
									b78cad85d3
								
							
						
					
					
						commit
						4f7b564adb
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -231,7 +231,8 @@ host name without trailing dot."
 | 
				
			||||||
                               (resolve-interface '(web client))
 | 
					                               (resolve-interface '(web client))
 | 
				
			||||||
                               'current-http-proxy))
 | 
					                               'current-http-proxy))
 | 
				
			||||||
                         (parameterize ((current-http-proxy #f))
 | 
					                         (parameterize ((current-http-proxy #f))
 | 
				
			||||||
                           (when (getenv "https_proxy")
 | 
					                           (when (and=> (getenv "https_proxy")
 | 
				
			||||||
 | 
					                                        (negate string-null?))
 | 
				
			||||||
                             (format (current-error-port)
 | 
					                             (format (current-error-port)
 | 
				
			||||||
                                     "warning: 'https_proxy' is ignored~%"))
 | 
					                                     "warning: 'https_proxy' is ignored~%"))
 | 
				
			||||||
                           (thunk))
 | 
					                           (thunk))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue