apt: move the keyserver lookup URL to data/keyserver.yml
This commit is contained in:
+1
-1
@@ -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}"))?;
|
||||
|
||||
Reference in New Issue
Block a user