Package: dpkg
Version: 1.21.1
Severity: minor
Tags: patch

Dear Maintainer,

dpkg-divert.1 says
-- >8 --
COMMANDS
       --list glob-pattern
           List diversions matching glob-pattern.
-- >8 --

But the glob is optional:
-- >8 --
$ dpkg-divert --list
diversion of /usr/share/dict/words to 
/usr/share/dict/words.pre-dictionaries-common by dictionaries-common
diversion of /usr/share/man/man1/podselect.1.gz to 
/usr/share/man/man1/podselect.bundled.1.gz by libpod-parser-perl
local diversion of 
/usr/lib/modules/5.10.0-3-amd64/kernel/drivers/hid/hid-multitouch.ko to 
/usr/lib/modules/5.10.0-3-amd64/kernel/drivers/hid/hid-multitouch.ko.distrib
diversion of /usr/share/vim/vim82/doc/help.txt to 
/usr/share/vim/vim82/doc/help.txt.vim-tiny by vim-runtime
diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz 
by dash
diversion of /usr/share/vim/vim82/doc/tags to 
/usr/share/vim/vim82/doc/tags.vim-tiny by vim-runtime
local diversion of /usr/lib/modules/5.10.0-3-amd64/kernel/drivers/hid/hid.ko to 
/usr/lib/modules/5.10.0-3-amd64/kernel/drivers/hid/hid.ko.distrib
diversion of /usr/bin/podselect to /usr/bin/podselect.bundled by 
libpod-parser-perl
diversion of /bin/sh to /bin/sh.distrib by dash
-- >8 --

Please consider the attached patch.

Best,
наб

-- Package-specific info:
System tainted due to merged-usr-via-aliased-dirs.

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

Kernel: Linux 5.10.0-3-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dpkg depends on:
ii  libbz2-1.0   1.0.8-5
ii  libc6        2.33-1
ii  liblzma5     5.2.5-2
ii  libselinux1  3.3-1+b1
ii  tar          1.34+dfsg-1
ii  zlib1g       1:1.2.11.dfsg-2

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt            2.3.13
pn  debsig-verify  <none>

-- Configuration Files:
/etc/logrotate.d/alternatives changed [not included]
/etc/logrotate.d/dpkg changed [not included]

-- no debconf information
From 9e894d4603b0c6504ce68ebc9726bd21f8f15d90 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= <[email protected]>
Date: Wed, 15 Dec 2021 17:16:43 +0100
Subject: [PATCH] dpkg-divert.1: --list pattern is optional
X-Mutt-PGP: OS

---
 man/dpkg-divert.pod | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/dpkg-divert.pod b/man/dpkg-divert.pod
index 383359112..24a05cdca 100644
--- a/man/dpkg-divert.pod
+++ b/man/dpkg-divert.pod
@@ -59,9 +59,9 @@ The file is currently not renamed, see B<--rename>.
 Remove a diversion for I<file>.
 The file is currently not renamed, see B<--rename>.
 
-=item B<--list> I<glob-pattern>
+=item B<--list> [I<glob-pattern>]
 
-List diversions matching I<glob-pattern>.
+List all diversions, or ones matching I<glob-pattern>.
 
 =item B<--listpackage> I<file>
 
-- 
2.34.1

Attachment: signature.asc
Description: PGP signature

Reply via email to