|
|
|
@ -72,6 +72,10 @@ void source_package_publishing_history::parse_json(const std::string& json_data)
|
|
|
|
|
if (data.contains("distro_series_link") && data["distro_series_link"].is_string()) {
|
|
|
|
|
distro_series_link = data["distro_series_link"].get<std::string>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (data.contains("display_name") && data["display_name"].is_string()) {
|
|
|
|
|
display_name = data["display_name"].get<std::string>();
|
|
|
|
|
}
|
|
|
|
|
} catch (const std::exception& e) {
|
|
|
|
|
std::cerr << "Error parsing source JSON: " << e.what() << std::endl;
|
|
|
|
|
}
|
|
|
|
|