]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
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 15:29:36 +0000 (16:29 +0100)
commitcea8113d14da9e12db80a5b6b5811a47a7dfdeef
treee2c9e37e598b1547edf44330257cda91c3d4199c
parent107c47c4e6de6a596cf1aeca5c18dbc1c5b44dc4
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 ]

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