apt: move the keyserver lookup URL to data/keyserver.yml

This commit is contained in:
2026-09-18 13:28:05 +02:00
parent 7af767898e
commit 7601524b7c
4 changed files with 53 additions and 7 deletions
+1 -1
View File
@@ -905,7 +905,7 @@ pub async fn ppa_keyring_bytes(
.into());
}
let key_url = format!("https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x{fingerprint}");
let key_url = crate::apt::keyring::keyserver_lookup_url(&fingerprint);
let armored = fetch_keyring_cached(&key_url).await?;
let keyring = dearmor(&armored)
.map_err(|e| format!("invalid PGP armor in the key of PPA '{owner}/{name}': {e}"))?;