Re: [yocto] [meta-swupd][PATCH 1/1] bundles.py: allow username/password encoded in URLs

2018-02-24 Thread Ingo Flaschberger
Dear Patrick, attached requested patch. Kind regards,     Ingo Flaschberger Am 10.01.2018 um 10:58 schrieb Patrick Ohly: On Tue, 2018-01-09 at 19:28 +0100, Ingo Flaschberger wrote: Dear Patrick, it works if you replace: manager.add_password(None, parsed_url, parsed_url.username, parsed

Re: [yocto] [meta-swupd][PATCH 1/1] bundles.py: allow username/password encoded in URLs

2018-01-10 Thread Patrick Ohly
On Tue, 2018-01-09 at 19:28 +0100, Ingo Flaschberger wrote: > Dear Patrick, > > it works if you replace: > manager.add_password(None, parsed_url, parsed_url.username,  > parsed_url.password) > with: >   manager.add_password(None, new_url, parsed_url.username,  > parsed_url.password) I as

Re: [yocto] [meta-swupd][PATCH 1/1] bundles.py: allow username/password encoded in URLs

2018-01-09 Thread Ingo Flaschberger
Dear Patrick, it works if you replace:     manager.add_password(None, parsed_url, parsed_url.username, parsed_url.password) with: manager.add_password(None, new_url, parsed_url.username, parsed_url.password) Kind regards,     Ingo Flaschberger Am 09.01.2018 um 17:57 schrieb Patrick Ohl

Re: [yocto] [meta-swupd][PATCH 1/1] bundles.py: allow username/password encoded in URLs

2018-01-09 Thread Patrick Ohly
On Thu, 2017-12-21 at 00:18 +0100, Ingo Flaschberger wrote: > Dear Patrick, > > this doesn't work: >   0162:    """ >   0163:    parsed_url = urllib.parse.urlsplit(url) >   0164:    if parsed_url.username != None: >   0165:    # Use the netloc with just the hostname, without  >

Re: [yocto] [meta-swupd][PATCH 1/1] bundles.py: allow username/password encoded in URLs

2017-12-20 Thread Ingo Flaschberger
Dear Patrick, this doesn't work: 0162:    """ 0163:    parsed_url = urllib.parse.urlsplit(url) 0164:    if parsed_url.username != None: 0165:    # Use the netloc with just the hostname, without username/password.  *** 0166:    parsed_url.netloc = parsed_url.hostname

[yocto] [meta-swupd][PATCH 1/1] bundles.py: allow username/password encoded in URLs

2017-12-20 Thread Patrick Ohly
Downloading content and version information via HTTP may need a username/password for basic authentication. To support this, SWUPD_VERSION_URL and SWUPD_CONTENT_URL can now contain URLs of the form http(s)://:@/. Original patch from: Ingo Flaschberger Signed-off-by: Patrick Ohly --- lib/swupd/