]> git.proxmox.com Git - proxmox-backup.git/commit
apt: add /changelog API call similar to PVE
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 21 Oct 2020 09:41:16 +0000 (11:41 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 22 Oct 2020 14:25:08 +0000 (16:25 +0200)
commit9e61c01ce489e676cdeb2ca4e054e465bdeb3ce5
treeed35ec4f3ed22123f14d1f56a24f79cce6ef834a
parent91c9b42da380d20b1d74ecfaa80f2a4fa25e2fc3
apt: add /changelog API call similar to PVE

For proxmox packages it works the same way as PVE, by retrieving the
changelog URL and issuing a HTTP GET to it, forwarding the output to the
client. As this is only supposed to be a workaround removed in the
future, a simple block_on is used to avoid async.

For debian packages we can simply call 'apt-get changelog' and forward
it's output.

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