summaryrefslogtreecommitdiffstats
path: root/dselect/pkgtop.cc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-07 13:30:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-07 13:30:09 +0000
commit3c05da1bdef2a6e2142b4fcac974e7e3fc0db93c (patch)
tree9532e637f47d6ff7246ccbabb62d4e2b4b5908df /dselect/pkgtop.cc
parentAdding debian version 1.22.6. (diff)
downloaddpkg-3c05da1bdef2a6e2142b4fcac974e7e3fc0db93c.tar.xz
dpkg-3c05da1bdef2a6e2142b4fcac974e7e3fc0db93c.zip
Merging upstream version 1.22.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dselect/pkgtop.cc')
-rw-r--r--dselect/pkgtop.cc6
1 files changed, 4 insertions, 2 deletions
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++;