apt: query the Launchpad PPA API through the shared HTTP client

This commit is contained in:
2026-09-18 13:09:46 +02:00
parent 941f91decf
commit c106ebe315
2 changed files with 31 additions and 22 deletions
+3 -2
View File
@@ -92,8 +92,9 @@ fn person_url(user: &str) -> String {
}
/// URL of the Launchpad API resource of a PPA (`~user/+archive/ubuntu/name`
/// covers the default `ppa` archive and named archives alike)
fn archive_url(user: &str, ppa: &str) -> String {
/// covers the default `ppa` archive and named archives alike); shared by the
/// put-side pre-flight checks and the apt keyring's fingerprint lookup
pub(crate) fn archive_url(user: &str, ppa: &str) -> String {
format!("{API_BASE}/~{user}/+archive/ubuntu/{ppa}")
}