summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2
diff options
context:
space:
mode:
authorOlof Johansson <olof.johansson@axis.com>2014-01-20 12:03:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-24 17:54:46 +0000
commit7dd4bf6310c61828dc2ac7777f5adf1004349715 (patch)
treefbc030576a80f9427d3c4488d0aa4e553c72818e /bitbake/lib/bb/fetch2
parent57484d68dff378e4f3bd0d3e40b9db02b029feb4 (diff)
downloadpoky-7dd4bf6310c61828dc2ac7777f5adf1004349715.tar.gz
bitbake: fetch2.URI: Set username/password should not change the other
When setting the username after already having set the password, the password was unexpectedly reset. This change fixes this issue and introduces unit tests to make sure it doesn't happen again. (Bitbake rev: 25faef3a047f9c7564089463d7c96f6910b640cb) Signed-off-by: Olof Johansson <olof.johansson@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 05999607b9..4335e7a0d8 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -321,9 +321,10 @@ class URI(object):
321 321
322 @username.setter 322 @username.setter
323 def username(self, username): 323 def username(self, username):
324 password = self.password
324 self.userinfo = username 325 self.userinfo = username
325 if self.password: 326 if password:
326 self.userinfo += ":%s" % self.password 327 self.userinfo += ":%s" % password
327 328
328 @property 329 @property
329 def password(self): 330 def password(self):