]> git.proxmox.com Git - proxmox-backup.git/commit - src/api2/node/apt.rs
apt: allow changelog retrieval from enterprise repo
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 9 Nov 2020 09:35:28 +0000 (10:35 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 9 Nov 2020 16:28:58 +0000 (17:28 +0100)
commit137a6ebcadea6ebceaa69517a5aec9d35ef1c39f
tree9d554b9b3af5ffad08509daaf2adc30bd3ffcecb
parented1329ecf77742cd923d2a02a01a9d448e303110
apt: allow changelog retrieval from enterprise repo

If a package is or will be installed from the enterprise repo, retrieve
the changelog from there as well (securely via HTTPS and authenticated
with the subcription key).

Extends the get_string method to take additional headers, in this case
used for 'Authorization'. Hyper does not have built-in basic auth
support AFAICT but it's simple enough to just build the header manually.

Take the opportunity and also set the User-Agent sensibly for GET
requests, just like for POST.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/api2/node/apt.rs
src/tools/apt.rs
src/tools/http.rs