|
|
@ -67,12 +67,12 @@ void person::parse_json(const std::string& json_data) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
std::optional<archive> person::getPPAByName(distribution& distro, const std::string& name) {
|
|
|
|
std::optional<archive> person::getPPAByName(distribution& distro, const std::string& name_) {
|
|
|
|
std::string owner = name;
|
|
|
|
std::string owner = name;
|
|
|
|
std::string endpoint = "~" + lp->url_encode(owner);
|
|
|
|
std::string endpoint = "~" + lp->url_encode(owner);
|
|
|
|
std::map<std::string, std::string> params = {
|
|
|
|
std::map<std::string, std::string> params = {
|
|
|
|
{"distribution", distro.self_link},
|
|
|
|
{"distribution", distro.self_link},
|
|
|
|
{"name", name},
|
|
|
|
{"name", name_},
|
|
|
|
{"ws.op", "getPPAByName"}
|
|
|
|
{"ws.op", "getPPAByName"}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
auto response = lp->api_get(endpoint, params);
|
|
|
|
auto response = lp->api_get(endpoint, params);
|
|
|
|