Bug#766641: devscripts: [mk-origtargz] Files-Excluded fails to exclude filename with a space in it

Jérémy Lal kapouer at melix.org
Fri Oct 24 17:13:42 UTC 2014


Le vendredi 24 octobre 2014 à 12:58 -0400, James McCoy a écrit :
> On Fri, Oct 24, 2014 at 05:11:49PM +0200, Jérémy Lal wrote:
> > For example the first file is not excluded :
> > (all others are).
> > Is there a way to escape whitespaces ?
> > 
> > Files-Excluded:
> >  tests/data/fonts/XB Zar.ttf
> 
> The format of the Files-Excluded field follows that of the Files field
> in the copyright-format spec:
> 
>   Files
> 
>    Whitespace-separated list: list of patterns indicating files covered by
>    the license and copyright specified in this paragraph.
> 
>    Filename patterns in the Files field are specified using a simplified
>    shell glob syntax. Patterns are separated by whitespace.
> 
>      * Only the wildcards * and ? apply; the former matches any number of
>        characters (including none), the latter a single character. Both match
>        slashs (/) and leading dots, unlike shell globs. The pattern *.in
>        therefore matches any file whose name ends in .in anywhere in the
>        source tree, not just at the top level.
> 
> In your stanza, the line is treated as two separate patterns
> "tests/data/fonts/XB" and "Zar.ttf".  You can use a ? to match the
> space, "tests/data/fonts/XB?Zar.ttf".

huh, right... thank you.

what caught me and put me in (slight) distress is that it *silently*
didn't do what it was meant to do.
Is it another job for lintian ?


Jérémy.



More information about the devscripts-devel mailing list