|
|
@ -27,6 +27,7 @@ source_package_publishing_history::source_package_publishing_history()
|
|
|
|
lp(nullptr),
|
|
|
|
lp(nullptr),
|
|
|
|
distro_series([this]() -> std::optional<class distro_series> {
|
|
|
|
distro_series([this]() -> std::optional<class distro_series> {
|
|
|
|
if (distro_series_link.empty()) return std::nullopt;
|
|
|
|
if (distro_series_link.empty()) return std::nullopt;
|
|
|
|
|
|
|
|
if (_distro_series) return _distro_series;
|
|
|
|
|
|
|
|
|
|
|
|
auto response = lp ? lp->api_get(distro_series_link) : std::nullopt;
|
|
|
|
auto response = lp ? lp->api_get(distro_series_link) : std::nullopt;
|
|
|
|
if (!response) return std::nullopt;
|
|
|
|
if (!response) return std::nullopt;
|
|
|
@ -36,6 +37,7 @@ source_package_publishing_history::source_package_publishing_history()
|
|
|
|
|
|
|
|
|
|
|
|
if (ds) {
|
|
|
|
if (ds) {
|
|
|
|
ds->set_lp(lp);
|
|
|
|
ds->set_lp(lp);
|
|
|
|
|
|
|
|
_distro_series = ds;
|
|
|
|
return ds;
|
|
|
|
return ds;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|