summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/wget.py
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:31 +0000
commit0a9161855cfe4d861745ef59e58f8626f0ad3617 (patch)
tree8c0cf6de104541cd2fc52c081ed76b5ba05fc024 /bitbake/lib/bb/fetch2/wget.py
parent8c582d39ff8cba9c85576f8e6c8ae6328839b53c (diff)
downloadpoky-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/bb/fetch2/wget.py')
-rw-r--r--bitbake/lib/bb/fetch2/wget.py4
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):
322 authheader = "Basic %s" % encodeuser 322 authheader = "Basic %s" % encodeuser
323 r.add_header("Authorization", authheader) 323 r.add_header("Authorization", authheader)
324 324
325 if ud.user: 325 if ud.user and ud.pswd:
326 add_basic_auth(ud.user, r) 326 add_basic_auth(ud.user + ':' + ud.pswd, r)
327 327
328 try: 328 try:
329 import netrc, urllib.parse 329 import netrc, urllib.parse