From 2df7aec6966f768ca2772a045ef778bc61383495 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Tue, 17 Dec 2024 20:10:42 -0600 Subject: [PATCH] Try a different approach for lintian-ppa distro_series --- cpp/lintian-ppa.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/lintian-ppa.cpp b/cpp/lintian-ppa.cpp index 94dc5b1..9b57ca5 100644 --- a/cpp/lintian-ppa.cpp +++ b/cpp/lintian-ppa.cpp @@ -395,7 +395,9 @@ int main(int argc, char* argv[]) { auto ubuntu_opt = lp->distributions["ubuntu"]; distribution ubuntu = ubuntu_opt.value(); auto ds_opt = ubuntu.current_series; - distro_series current_series = *ds_opt; + auto current_series; + if (ds_opt) + current_series = ds_opt; // Retrieve user and PPA auto user_opt = lp->people[args.user];