[Dctrl-tools-devel] Bug#765014: Bug#765014: dctrl-tools: 'grep-dctrl -S' doesn't work the way documentation describes
Antti-Juhani Kaijanaho
antti-juhani at kaijanaho.fi
Wed Feb 11 18:43:31 UTC 2015
On Sun, Oct 12, 2014 at 04:44:33PM -0700, Dima Kogan wrote:
> 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.
No, Package is searched only if Source is empty (which includes the case when
Source is missing).
> 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
I believe this is correct behavior. Source is not empty.
--
Antti-Juhani Kaijanaho
More information about the Dctrl-tools-devel
mailing list