[pve-devel] [PATCH-SERIES proxmox-apt/pve-rs] better detection of standard repositories

Fabian Ebner f.ebner at proxmox.com
Thu Jul 29 14:25:47 CEST 2021

by also requiring the suite to match. Let the caller pass along the
current suite instead of auto-detecting, and have the backend only
handle static stuff (avoids the need for Result<>).

Also refactor check_suites in a similar fashion, so it's more uniform
and so that get_current_release_codename only needs to be called once,
by the library user.

The pve-rs patch #1 is required after proxmox-apt patch #1 is applied.
The pve-rs patch #2 is required after proxmox-apt patches #3 and #5
are applied.

I'll send the corresponding patches for pmg-rs and proxmox-backup


Fabian Ebner (5):
  standard repos: add suite parameter for stricter detection
  repo: make suite_variant helper more general
  check repos: have caller specify the current suite
  repo: remove has_suite_variant helper
  add type DebianCodename

 src/repositories/file.rs       |  84 ++++++++++++++-------------
 src/repositories/mod.rs        |  31 +++++-----
 src/repositories/release.rs    | 103 ++++++++++++++++++++++++++-------
 src/repositories/repository.rs |  33 ++++-------
 tests/repositories.rs          |  27 ++++++---
 5 files changed, 171 insertions(+), 107 deletions(-)


Fabian Ebner (2):
  apt: repos: adapt to back-end changes
  apt: repos: adapt to further back-end changes

 src/apt/repositories.rs | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)


More information about the pve-devel mailing list