From ea5ae88194a3f9d8b25de1f78f06c8637321a616 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 14 Dec 2024 15:01:13 -0600 Subject: hscript: Remove APK Fission repositories/keys We don't add them by default even when firmware is true now, because the user/ repository has linux-firmware as of 1.0-BETA6. --- hscript/script_v.cc | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/hscript/script_v.cc b/hscript/script_v.cc index bf5c41f..153c4c5 100644 --- a/hscript/script_v.cc +++ b/hscript/script_v.cc @@ -138,24 +138,6 @@ bool add_default_repos(std::vector> &repos, std::unique_ptr user_repo(user_key); repos.push_back(std::move(user_repo)); -#ifdef NON_LIBRE_FIRMWARE - /* REQ: Runner.Execute.firmware.Repository */ - if(firmware) { - Repository *fw_key = static_cast( - Repository::parseFromData( - "https://distfiles.apkfission.net/adelie/1.0/nonfree", - p, nullptr, nullptr, s - ) - ); - if(!fw_key) { - output_error("internal", - "failed to create firmware repository"); - return false; - } - std::unique_ptr fw_repo(fw_key); - repos.push_back(std::move(fw_repo)); - } -#endif /* NON_LIBRE_FIRMWARE */ return true; } @@ -220,29 +202,6 @@ bool add_default_repo_keys(std::vector> &keys, keys.push_back(std::move(repo_key)); } -#ifdef NON_LIBRE_FIRMWARE - /* REQ: Runner.Execute.signingkey.Firmware */ - if(firmware) { - const std::string base_url = "https://distfiles.adelielinux.org/adelie/keys/"; - SigningKey *fkey = dynamic_cast(SigningKey::parseFromData( - base_url + "/packages@pleroma.apkfission.net-5ac0b300.rsa.pub", - {"internal", 0}, nullptr, nullptr, s) - ); - if(!fkey) { - output_error("internal", "failed to create firmware signing key"); - return false; - } - std::unique_ptr fw_key(fkey); - keys.push_back(std::move(fw_key)); - fkey = dynamic_cast(SigningKey::parseFromData( - base_url + "/packages@pleroma.apkfission.net-5ac04808.rsa.pub", - {"", 0}, nullptr, nullptr, s)); - if(fkey) { - std::unique_ptr fw_key2(fkey); - keys.push_back(std::move(fw_key2)); - } - } -#endif /* NON_LIBRE_FIRMWARE */ return true; } -- cgit v1.2.3-70-g09d2