]> git.proxmox.com Git - proxmox-apt.git/commit
standard repos: allow conversion from handle and improve information
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 30 Jun 2021 15:07:53 +0000 (17:07 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Jun 2021 18:38:05 +0000 (20:38 +0200)
commit3c4e441d7ce56b044a19bb8b21f0bb77ec2f4ee7
treef99e67669f31eb3133f3d29cac1d408600f46062
parent47c2c350b46a02227bde329a83cf1400bf8877a4
standard repos: allow conversion from handle and improve information

Add a description for the handle, which can be useful to display
alongside the name. The descriptions are essentially the first
sentence from PVE's "Package Repositories" docs, but without the
product name.

Also drop the " Repository" suffix from the names, as it's not useful,
but can be ugly: e.g. for the UI when the label already is
'Repository:'.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
src/repositories/mod.rs
src/repositories/standard.rs
tests/repositories.rs