summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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