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