[pbs-devel] applied: [PATCH proxmox-backup] apt: allow changelog retrieval from enterprise repo

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Nov 10 09:25:12 CET 2020


On 09.11.20 10:35, Stefan Reiter wrote:
> 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 at proxmox.com>
> ---
> 
> Note: If you configure the enterprise repo together with pbstest/staging, the
> latter will take precedence, i.e. for testing this only configure the enterprise
> repo, otherwise the old code path will be taken for packages found in both.
> 
>  src/api2/node/apt.rs | 30 ++++++++++++++++++++++++++++--
>  src/tools/apt.rs     |  9 +++++++--
>  src/tools/http.rs    | 18 ++++++++++++++++--
>  3 files changed, 51 insertions(+), 6 deletions(-)
> 
>

applied, thanks!





More information about the pbs-devel mailing list