Added 'ftp_proxy' environment variable support
Some bitbake recipes use FTP to fetch objects. This patch adds support for the ftp_proxy variable to kas. Is now usable in the same manner as the 'http_proxy' variable Signed-off-by: Claudius Heine <ch@denx.de>
This commit is contained in:
		
				
					committed by
					
						
						Daniel Wagner
					
				
			
			
				
	
			
			
			
						parent
						
							f140d7905c
						
					
				
				
					commit
					845d212f02
				
			@@ -22,7 +22,7 @@ Just run::
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
When you need a proxy to access the internet, add::
 | 
					When you need a proxy to access the internet, add::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    --build-arg http_proxy=<http_proxy> --build-arg https_proxy=<https_proxy>
 | 
					    --build-arg http_proxy=<http_proxy> --build-arg https_proxy=<https_proxy> --build-arg ftp_proxy=<ftp_proxy>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
to the call.
 | 
					to the call.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -93,6 +93,7 @@ Environment variables
 | 
				
			|||||||
+-----------------------+-----------------------------------------------------+
 | 
					+-----------------------+-----------------------------------------------------+
 | 
				
			||||||
| ``http_proxy``        | This overwrites the proxy configuration in the      |
 | 
					| ``http_proxy``        | This overwrites the proxy configuration in the      |
 | 
				
			||||||
| ``https_proxy``       | configuration file.                                 |
 | 
					| ``https_proxy``       | configuration file.                                 |
 | 
				
			||||||
 | 
					| ``ftp_proxy``         |                                                     |
 | 
				
			||||||
| ``no_proxy``          |                                                     |
 | 
					| ``no_proxy``          |                                                     |
 | 
				
			||||||
+-----------------------+-----------------------------------------------------+
 | 
					+-----------------------+-----------------------------------------------------+
 | 
				
			||||||
| ``GIT_PROXY_COMMAND`` | Set proxy for native git fetches. ``NO_PROXY`` is   |
 | 
					| ``GIT_PROXY_COMMAND`` | Set proxy for native git fetches. ``NO_PROXY`` is   |
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -146,6 +146,7 @@ class Config:
 | 
				
			|||||||
                                         proxy_config.get(var_name, ''))
 | 
					                                         proxy_config.get(var_name, ''))
 | 
				
			||||||
                for var_name in ['http_proxy',
 | 
					                for var_name in ['http_proxy',
 | 
				
			||||||
                                 'https_proxy',
 | 
					                                 'https_proxy',
 | 
				
			||||||
 | 
					                                 'ftp_proxy',
 | 
				
			||||||
                                 'no_proxy']}
 | 
					                                 'no_proxy']}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def get_repos(self):
 | 
					    def get_repos(self):
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -161,6 +161,9 @@ CONFIGSCHEMA = {
 | 
				
			|||||||
                'https_proxy': {
 | 
					                'https_proxy': {
 | 
				
			||||||
                    'type': 'string',
 | 
					                    'type': 'string',
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
 | 
					                'ftp_proxy': {
 | 
				
			||||||
 | 
					                    'type': 'string',
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
                'no_proxy': {
 | 
					                'no_proxy': {
 | 
				
			||||||
                    'type': 'string',
 | 
					                    'type': 'string',
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user