[Dctrl-tools-devel] Bug#702150: Bug#702150: Bug#702150: dctrl-tools: -X should match on "NAME (VERSION)" too

Antti-Juhani Kaijanaho antti-juhani at kaijanaho.fi
Sun Mar 3 17:30:04 UTC 2013

On Sun, Mar 03, 2013 at 07:11:07PM +0200, Teodor MICU wrote:
> 2013/3/3 Antti-Juhani Kaijanaho <antti-juhani at kaijanaho.fi>
> > > By using '-X' some times not all packages are selected:
> > >
> > >     Package: python2.7
> > >     Source: python2.7 (2.7.3-7)
> >
> > This is the expected result, hence downgrading to wishlist.
> > -X is supposed to check if the field in question (in this case, Source, or if
> > it is missing, Package) contains the string (in this case $PKG) and nothing else.
> This is not expected at all. You see that the name in question has an
> exact match?

The Source field, which is being looked at here, contains more than the name.
Hence it's not an exact match.  There is a substring match, but -X disallows it.

> > > I thing that »grep-dctrl -X« should match on "NAME (VERSION)" too.
> >
> > I think changing the defined meaning of -X that radically is out of the question.
> > Providing another flag to do what you are reqesting is possible, though the
> > question of exactly what it *should* match is not clear.  Can you give me a
> > regexp, for example?
> This is not a radical change.

Changing -X in this way would be radical.

> A regex could be found, the question is
> would you accept it.

Depends on the regex.

Antti-Juhani Kaijanaho, Jyväskylä, Finland

More information about the Dctrl-tools-devel mailing list