From 0a9161855cfe4d861745ef59e58f8626f0ad3617 Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Mon, 18 Mar 2019 14:58:20 +0100 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/wget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake') 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 -- cgit v1.2.3-54-g00ecf