]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/distro_check: Remove '_proxy' on dict values used by urllib.open
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Thu, 8 Oct 2015 09:11:55 +0000 (09:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 Oct 2015 13:33:49 +0000 (14:33 +0100)
commit92fb327b08e4f9cfb2400610c2983afe579b3592
tree27f55506213e600e5729d97cb92ba62094b3de47
parent8779245ca404ec3851699b1e4309f9df3ff52a6c
lib/oe/distro_check: Remove '_proxy' on dict values used by urllib.open

There are two ways to pass the proxies values into urllib.open: exporting
the environment variables *_proxy and passing as dictionary into the
urllib.open call. The latter is currenty used and values should not have
the '_proxy' string, so removing it. Also, ignore uppercase proxies, these
are not taken into account by the library.

Tested on a network with proxy, adding 'inherit +="distrodata"' on local.conf
with the following commands

    for distrotask in distrodataall distro_checkall checklicenseall; do
        bitbake universe -c $distrotask
    done

[YOCTO #7567]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/distro_check.py