[pbs-devel] [PATCH proxmox-offline-mirror v2 0/3] improve pom multi-key handling

Stefan Sterz s.sterz at proxmox.com
Wed Nov 29 15:51:13 CET 2023


this patch series intends to improve the user experience when a user
adds multiple keys to one mirror and wants to use one medium to activate
multiple products. the first commit removes the `ProductType` trait that
has been moved to `proxmox-subscription` from pom. the second commit
handles media with muliple keys for muliple products more gracefully in
proxmox-offline-mirror-helper. it only tries to activate subscriptions
that have a matching server id. the finally commit just adds some
rustfmt clean ups.

changes since v1 @ (thanks to Fabian Grünbichler):

- moved to a hash map based approach when automatically selecting all
  applicable keys for the current system


Stefan Sterz (3):
  type: move `ProductType` enum to `proxmox-subscription`
  helper: improve handling of multiple keys when activating them
  offline mirror binary: rustfmt clean up

 src/bin/proxmox-offline-mirror-helper.rs      | 101 ++++++++++--------
 src/bin/proxmox-offline-mirror.rs             |  15 ++-
 src/bin/proxmox_offline_mirror_cmds/medium.rs |   4 +-
 .../subscription.rs                           |   4 +-
 src/config.rs                                 |   4 +-
 src/subscription.rs                           |   4 +-
 src/types.rs                                  |  44 +-------
 7 files changed, 75 insertions(+), 101 deletions(-)

--
2.39.2





More information about the pbs-devel mailing list