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 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org