Rework distro_series further

main
Simon Quigley 5 days ago
parent 2df7aec696
commit 6891092cda

@ -395,9 +395,11 @@ int main(int argc, char* argv[]) {
auto ubuntu_opt = lp->distributions["ubuntu"]; auto ubuntu_opt = lp->distributions["ubuntu"];
distribution ubuntu = ubuntu_opt.value(); distribution ubuntu = ubuntu_opt.value();
auto ds_opt = ubuntu.current_series; auto ds_opt = ubuntu.current_series;
auto current_series; if (!ds_opt) {
if (ds_opt) std::cerr << "Failed to get current_series.\n";
current_series = ds_opt; return 1;
}
auto current_series = ds_opt;
// Retrieve user and PPA // Retrieve user and PPA
auto user_opt = lp->people[args.user]; auto user_opt = lp->people[args.user];

Loading…
Cancel
Save