diff options
author | Stefan Klug <stefan.klug@baslerweb.com> | 2019-03-18 14:58:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-03-19 15:29:31 +0000 |
commit | 0a9161855cfe4d861745ef59e58f8626f0ad3617 (patch) | |
tree | 8c0cf6de104541cd2fc52c081ed76b5ba05fc024 /bitbake/lib | |
parent | 8c582d39ff8cba9c85576f8e6c8ae6328839b53c (diff) | |
download | openembedded-core-contrib-0a9161855cfe4d861745ef59e58f8626f0ad3617.tar.gz |
bitbake: fetch2/wget: Fix authentication in checkstatus() of the wget fetcher
I wonder how this used to work for anybody.
(Bitbake rev: 9481e9cd688f635a7fe2ac60d5826ac26f0cb9ba)
Signed-off-by: Stefan Klug <stefan.klug@baslerweb.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index e2037511da..3addb219d5 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py @@ -322,8 +322,8 @@ class Wget(FetchMethod): authheader = "Basic %s" % encodeuser r.add_header("Authorization", authheader) - if ud.user: - add_basic_auth(ud.user, r) + if ud.user and ud.pswd: + add_basic_auth(ud.user + ':' + ud.pswd, r) try: import netrc, urllib.parse |