aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Klug <stefan.klug@baslerweb.com>2019-03-18 14:58:20 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-19 15:29:26 +0000
commit9481e9cd688f635a7fe2ac60d5826ac26f0cb9ba (patch)
tree4d619b26a44f16b115efe098256027a0e3a551d2
parent6065540cb923cde2299b1c16a4e2bb9376186799 (diff)
downloadbitbake-9481e9cd688f635a7fe2ac60d5826ac26f0cb9ba.tar.gz
fetch2/wget: Fix authentication in checkstatus() of the wget fetcher
I wonder how this used to work for anybody. Signed-off-by: Stefan Klug <stefan.klug@baslerweb.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/wget.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py
index e2037511d..3addb219d 100644
--- a/lib/bb/fetch2/wget.py
+++ b/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