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
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
d 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/bundles.py | 26 ++
requested patch attached
From f2526a7ed47b3f3c8f0cb893eadb5e6981255d4c Mon Sep 17 00:00:00 2001
From: ingo
Date: Sat, 25 Mar 2017 21:13:33 +0100
Subject: [PATCH] bundles.py: allow username/password encoded into HTTP server
URLs example: https://user:password@server/path
---
lib/swupd/bundles.
This patch allows basic authentication of swupd SWUPD_VERSION_URL and
SWUPD_CONTENT_URL.
swupd-client already support urlencoded username/password, but
buildlayer does not.
diff --git a/lib/swupd/bundles.py b/lib/swupd/bundles.py
index b4c6f49..223fd3c 100644
--- a/lib/swupd/bundles.py
+++ b/l