summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/distro_check.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/lib/oe/distro_check.py b/meta/lib/oe/distro_check.py
index f92cd2e423..8655a6fc14 100644
--- a/meta/lib/oe/distro_check.py
+++ b/meta/lib/oe/distro_check.py
@@ -9,10 +9,12 @@ def create_socket(url, d):
9 socket.close() 9 socket.close()
10 10
11def get_proxies(d): 11def get_proxies(d):
12 import os 12 proxies = {}
13 proxykeys = ['http', 'https', 'ftp', 'ftps', 'no', 'all'] 13 for key in ['http', 'https', 'ftp', 'ftps', 'no', 'all']:
14 proxyvalues = map(lambda key: d.getVar(key+'_proxy', True), proxykeys) 14 proxy = d.getVar(key + '_proxy', True)
15 return dict(zip(proxykeys, proxyvalues)) 15 if proxy:
16 proxies[key] = proxy
17 return proxies
16 18
17def get_links_from_url(url, d): 19def get_links_from_url(url, d):
18 "Return all the href links found on the web location" 20 "Return all the href links found on the web location"