Your message dated Thu, 19 Mar 2015 22:34:32 +0100
with message-id <[email protected]>
and subject line Re: Bug#765014: [Dctrl-tools-devel] Bug#765014: dctrl-tools:
'grep-dctrl -S' doesn't work the way documentation describes
has caused the Debian Bug report #765014,
regarding dctrl-tools: 'grep-dctrl -S' doesn't work the way documentation
describes
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
765014: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765014
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
* Antti-Juhani Kaijanaho <[email protected]> [2015-02-11 19:43:31 CET]:
> 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).
I agree with that view. The field isn't empty in your example, which
is different from that the search does end up empty because it didn't
match. The behavior you wanted is -FSource,Package with comma, not the
possibility that the colon offers.
Thus closing this bugreport. Thanks for your report nevertheless :)
Rhonda
--
Fühlst du dich mutlos, fass endlich Mut, los |
Fühlst du dich hilflos, geh raus und hilf, los | Wir sind Helden
Fühlst du dich machtlos, geh raus und mach, los | 23.55: Alles auf Anfang
Fühlst du dich haltlos, such Halt und lass los |
--- End Message ---