]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: wget: allow basic http auth for SSTATE_MIRRORS
authorStephano Cetola <stephano.cetola@linux.intel.com>
Fri, 26 Aug 2016 17:41:43 +0000 (10:41 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Sep 2016 17:09:49 +0000 (18:09 +0100)
commit46bad463ef99db9f237723614c5de01f89d5e54f
treeaa7e8abf97323aea7dfc497abae995d3d4d69cb5
parent3658f6d4770b9015561b33c1e24078b1713372e4
bitbake: wget: allow basic http auth for SSTATE_MIRRORS

If http basic auth creds were added to sstate mirrors like so:

https://foo.com/sstate/PATH;user=foo:bar;downloadfilename=PATH

The sstate mirror check would silently fail with 401 unauthorized.
This patch allows both the check, and the wget download to succeed by
checking for user credentials and if present adding the correct
headers, or wget params as needed.

[ YOCTO #9815 ]

(Bitbake rev: cea8113d14da9e12db80a5b6b5811a47a7dfdeef)

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/wget.py