Re: let uscan exclude some upstream files (Was: uscan enhancement)
On Thu, Sep 06, 2012 at 10:34:38PM +0200, Andreas Tille wrote:
> It specifies:
> with the purpose to save ReadSeq.jar inside the source package. This
> works with the old method:
> $ find . -name "[a-z]*.jar"
> but failes when trying your patch:
> $ find . -path "./[a-z]*.jar"
> I admit I did also not followed the DEP5 discussion very closely but the
> current code could deal nicely with the specific removal which is not
> the case with your proposal and I have no clue how to reasonably specify
> the fact that all *.jars except one should be removed (besides
> specifying every single file).
I realize that http://dep.debian.net/deps/dep5/ is now obsolete.
Here is the current version.
This is the same pattern syntax as fnmatch(3) without the
FNM_PATHNAME flag, or the argument to the -path test of the GNU find
command, except that  wildcards are not recognized.
Multiple Files paragraphs are allowed. The last paragraph that
matches a particular file applies to it. More general paragraphs
should therefore be given first, followed by more specific overrides.
Exclusions are only supported by adding Files paragraphs to override
the previous match.
So, my patch is more conformant than the old method. Moreover,
brackets should be escaped before passing them to find.
For the moment, only one Files-Excluded is allowed in the unique
header paragraph . Exclusions are impossible. Maybe a solution
would be to define a fake "not-shipped-by-debian" license instead.
This would not only solve your problem, but also allow per-file-set
comments as discussed before (, ), and using unchanged existing
Your example would become:
Full license text.
Optionaly explain here why __MACOSX is rejected.
Optionaly explain here why jar files are rejected.
Full license text.
(excluded pattern are separated to demonstrate per-file-set comments)
(in real life, "Text of GPL3+" would be in a separate paragraph)
Allthough I agree with , in case we decide to put these patterns
into a separate file or into debian/watch options, a similar approach
could be used, like:
Exclude: __MACOSX *.jar