[Dctrl-tools-devel] Bug#765014: dctrl-tools: 'grep-dctrl -S' doesn't work the way documentation describes

Dima Kogan dima at secretsauce.net
Sun Oct 12 23:44:33 UTC 2014


Package: dctrl-tools
Version: 2.23
Severity: normal
Hi. The docs say that -S is

 Shorthand for -FSource:Package

And they say that

  A field specification can contain a colon (:). In such a case, the
  part up to the colon is taken as the name of the field to be searched
  in, and the part after the colon is taken as the name of the field
  whose content is to be used if the field to search in is empty.

I interpret this to mean that -S results in a search in the Source, and
if this search comes up empty, a search happens in Package.

However, the following snippet produces no result

 grep-dctrl -S -X make <<EOF
 Package: make
 Source: make-dfsg
 Version: 3.81-8.2
 Installed-Size: 1145
 EOF

Here -X means 'exact match'. If I replace -S with -P, it works fine. If
I remove the -X or replace 'make' with 'make-dfsg' then it works fine
too. So either I'm misinterpreting the docs (in which case they should
be clarified), or there's a bug.

Thanks



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (800, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: armel

Kernel: Linux 3.13-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages dctrl-tools depends on:
ii  libc6  2.19-11

dctrl-tools recommends no packages.

Versions of packages dctrl-tools suggests:
ii  apt      1.0.6
ii  debtags  1.12

-- no debconf information



More information about the Dctrl-tools-devel mailing list