[Dctrl-tools-devel] Bug#476861: Bug#383921: Bug#383921: Bug#476861: dctrl-tools: option to match against package-name boundaries

Antti-Juhani Kaijanaho antti-juhani at kaijanaho.fi
Fri Feb 27 10:18:31 UTC 2009


On Fri, Feb 27, 2009 at 09:23:26AM +0100, Stefano Zacchiroli wrote:
> > Would it make sense to instead rule out any character that would be
> > a part of a package name?
> 
> Uhm, I don't think so, because that set of characters is not
> "symmetric", e.g. a package cannot start with a -, but can contain it
> and other similar details. You can of course come up with a proper
> regexp, but I found delimiters more appropriate for this specific
> case.

Ok.

> When I first hacked up the patch, I did not get that those flags were
> specific of grep-dctrl pattern "particles" (i.e., that --whole-pkg
> should be repeated on different sub-patterns). Now that I'm aware of
> it, I think it does make sense, what's your take on it?
> 
> Nevertheless, that "implication" is currently annoying for the user
> because if you specify both -e and --whole-pkg you will get an
> error. What would be your preferred fix for this?

The error is from set_mode, yes?  Probably should have it suppress the error if
you specify the same mode multiple time.

-- 
Antti-Juhani Kaijanaho, Jyväskylä, Finland
http://antti-juhani.kaijanaho.fi/newblog/
http://www.flickr.com/photos/antti-juhani/





More information about the Dctrl-tools-devel mailing list