All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] distro_check: Allows to use proxy vars of OS env
@ 2016-05-09 16:55 edwin.plauchu.camacho
  0 siblings, 0 replies; only message in thread
From: edwin.plauchu.camacho @ 2016-05-09 16:55 UTC (permalink / raw)
  To: openembedded-core; +Cc: Edwin Plauchu

From: Edwin Plauchu <edwin.plauchu.camacho@intel.com>

This improve allows to fetch values from OS env. Covering an scenario where proxy variables have no value within data storage.

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@linux.intel.com>
---
 meta/lib/oe/distro_check.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/distro_check.py b/meta/lib/oe/distro_check.py
index 8655a6f..6e87323 100644
--- a/meta/lib/oe/distro_check.py
+++ b/meta/lib/oe/distro_check.py
@@ -11,7 +11,7 @@ def create_socket(url, d):
 def get_proxies(d):
     proxies = {}
     for key in ['http', 'https', 'ftp', 'ftps', 'no', 'all']:
-        proxy = d.getVar(key + '_proxy', True)
+        proxy = os.environ.get( key + '_proxy' ) or d.getVar(key + '_proxy', True)
         if proxy:
             proxies[key] = proxy
     return proxies
-- 
1.9.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-09 16:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-09 16:55 [PATCH] distro_check: Allows to use proxy vars of OS env edwin.plauchu.camacho

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.