]> git.proxmox.com Git - proxmox-backup.git/commit - src/api2/node.rs
add .../apt/update API call
authorStefan Reiter <s.reiter@proxmox.com>
Tue, 21 Jul 2020 11:41:07 +0000 (13:41 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Jul 2020 08:41:14 +0000 (10:41 +0200)
commita4e86972a4a8ba4b9df16a85c10cca61b76a9538
tree3cb306c8c73974e7e54b6ef66a7b13bc51fc1047
parent3a3af6e2b6c8f70f28d80be307bab12227396ebb
add .../apt/update API call

Depends on patched apt-pkg-native-rs. Changelog-URL detection is
inspired by PVE perl code for now, though marked with fixme to use 'apt
changelog' later on, if/when our repos have APT-compatible changelogs
set up.

list_installed_apt_packages iterates all packages and creates an
APTUpdateInfo with detailed information for every package matched by the
given filter Fn.

Sadly, libapt-pkg has some questionable design choices regarding their
use of 'iterators', which means quite a bit of nesting...

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Cargo.toml
src/api2/node.rs
src/api2/node/apt.rs [new file with mode: 0644]
src/api2/types.rs