Package: dpkg
Version: 1.18.7
Severity: minor
File: /usr/bin/dpkg-query

The dpkg-query manpage says:

> It contains the abbreviated package status, such as “ii” (since dpkg 1.16.2).

That turns out to be misleading, since the actual variable contains a
trailing space:

$ dpkg-query --showformat='${db:Status-Abbrev}${Package}\n' --show dpkg anjuta
un anjuta
ii dpkg

I think by now removing the space would be an API breakage (although
apparently nobody is using this[1]), so I think the thing to do now is
to fix the man page.

[1] https://codesearch.debian.net/results/status-abbrev/page_0

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dpkg depends on:
ii  libbz2-1.0   1.0.6-8
ii  libc6        2.22-7
ii  liblzma5     5.1.1alpha+20120614-2.1
ii  libselinux1  2.5-2
ii  tar          1.28-2.2
ii  zlib1g       1:1.2.8.dfsg-2+b1

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt  1.2.12

-- no debconf information

Reply via email to