[oe-commits] [bitbake] branch master-next updated: fetch2/wget: Fix authentication in checkstatus() of the wget fetcher
git at git.openembedded.org
git at git.openembedded.org
Tue Mar 19 00:04:20 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
The following commit(s) were added to refs/heads/master-next by this push:
new 06b3046 fetch2/wget: Fix authentication in checkstatus() of the wget fetcher
06b3046 is described below
commit 06b3046fccf9bf07722e0c43b88a8a10607ad9d7
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 f32132d..3bb3e3b 100644
--- a/lib/bb/fetch2/wget.py
+++ b/lib/bb/fetch2/wget.py
@@ -320,8 +320,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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list