]> git.proxmox.com Git - proxmox-apt.git/commit
check: return 'origin' property instead of 'badge' for official host
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 30 Jun 2021 10:20:17 +0000 (12:20 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Jun 2021 11:24:42 +0000 (13:24 +0200)
commit87ea23ec83b5b4ee41b4ea4b3f27c6555124bcf0
treec89dd08ef669cd31551cdbbb00bacc81a6c16959
parentbb0ff2ac73577f07a48209b8c2ce698e5c923d85
check: return 'origin' property instead of 'badge' for official host

which is obtained from the cached InRelease file and also works for
mirrors, host aliases, direct IPs.

The has_official_uri function was replaced by origin_from_uris.

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