From 44cf9c6d2d274eac37502e835155f7e985f1b8e6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 7 Aug 2024 15:30:08 +0200 Subject: Adding upstream version 1.22.7. Signed-off-by: Daniel Baumann --- dselect/pkgtop.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dselect/pkgtop.cc') diff --git a/dselect/pkgtop.cc b/dselect/pkgtop.cc index e7bedc7..b904fb5 100644 --- a/dselect/pkgtop.cc +++ b/dselect/pkgtop.cc @@ -59,13 +59,15 @@ int packagelist::describemany(char buf[], const char *prioritystring, ssoabbrev= _("All"); switch (statsortorder) { case sso_avail: - if (pps->ssavail == -1) break; + if (pps->ssavail == ssa_none) + break; ssostring= ssastrings[pps->ssavail]; ssoabbrev= ssaabbrevs[pps->ssavail]; statindent++; break; case sso_state: - if (pps->ssstate == -1) break; + if (pps->ssstate == sss_none) + break; ssostring= sssstrings[pps->ssstate]; ssoabbrev= sssabbrevs[pps->ssstate]; statindent++; -- cgit v1.2.3