diff options
author | Olof Johansson <olof.johansson@axis.com> | 2014-01-20 12:03:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-24 17:54:46 +0000 |
commit | 7dd4bf6310c61828dc2ac7777f5adf1004349715 (patch) | |
tree | fbc030576a80f9427d3c4488d0aa4e553c72818e /bitbake/lib/bb/fetch2 | |
parent | 57484d68dff378e4f3bd0d3e40b9db02b029feb4 (diff) | |
download | poky-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__.py | 5 |
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): |