[oe-commits] [bitbake] branch master updated: fetch2/wget: Fix authentication in checkstatus() of the wget fetcher

git at git.openembedded.org git at git.openembedded.org
Tue Mar 19 15:47:56 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository bitbake.

The following commit(s) were added to refs/heads/master by this push:
     new 9481e9c  fetch2/wget: Fix authentication in checkstatus() of the wget fetcher
9481e9c is described below

commit 9481e9cd688f635a7fe2ac60d5826ac26f0cb9ba
Author: Stefan Klug <stefan.klug at baslerweb.com>
AuthorDate: Mon Mar 18 14:58:20 2019 +0100

    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 at baslerweb.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/fetch2/wget.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py
index e203751..3addb21 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list