|
|
|
@ -17,6 +17,7 @@
|
|
|
|
|
#include "binary_package_publishing_history.h"
|
|
|
|
|
#include "build.h"
|
|
|
|
|
#include "launchpad.h"
|
|
|
|
|
#include "distro_series.h"
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include <nlohmann/json.hpp>
|
|
|
|
|
|
|
|
|
@ -26,7 +27,7 @@ source_package_publishing_history::source_package_publishing_history()
|
|
|
|
|
self_link(""),
|
|
|
|
|
distro_series_link(""),
|
|
|
|
|
lp(nullptr),
|
|
|
|
|
distro_series([this]() -> std::optional<class distro_series> {
|
|
|
|
|
distro_series([this]() -> std::optional<::distro_series> {
|
|
|
|
|
if (distro_series_link.empty()) return std::nullopt;
|
|
|
|
|
if (_distro_series) return _distro_series;
|
|
|
|
|
|
|
|
|
@ -34,7 +35,7 @@ source_package_publishing_history::source_package_publishing_history()
|
|
|
|
|
if (!response) return std::nullopt;
|
|
|
|
|
|
|
|
|
|
auto data = nlohmann::json::parse(response.value());
|
|
|
|
|
auto ds = distro_series::parse(data.dump());
|
|
|
|
|
auto ds = ::distro_series::parse(data.dump());
|
|
|
|
|
|
|
|
|
|
if (ds) {
|
|
|
|
|
ds->set_lp(lp);
|
|
|
|
|